{
  "id": "@typed/fx#RefRecord.set",
  "canonicalId": "@typed/fx/RefRecord#set",
  "symbol": {
    "id": "@typed/fx#RefRecord.set",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefRecord.set",
    "kind": "constant",
    "signatures": [
      "export declare const set: {\n    <K extends string, V>(key: K, value: V): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n    <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>, key: K, value: V): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
    ],
    "summary": "Set a key-value pair in the Record.",
    "sections": {
      "Why": "Keeps set atomic with respect to competing RefSubject writes instead of splitting the read and\nreplacement into separate effects.",
      "Ownership and lifetime": "Running set performs one serialized record transition and resolves with its committed value. It\nacquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefRecord.ts",
      "line": 84
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefRecord.set",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefRecord",
    "qualifiedName": "RefRecord.set",
    "declarationKey": "declaration:ec73cf27be2087cb9d2c185b",
    "family": "variable",
    "signatures": [
      "export declare const set: {\n    <K extends string, V>(key: K, value: V): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n    <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>, key: K, value: V): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 84,
          "column": 14
        },
        "end": {
          "line": 96,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 85,
          "column": 3
        },
        "end": {
          "line": 88,
          "column": 93
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 89,
          "column": 3
        },
        "end": {
          "line": 93,
          "column": 55
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefRecord#set"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefRecord",
    "static": false,
    "importedFrom": "declaration:ec73cf27be2087cb9d2c185b"
  },
  "declaration": {
    "declarationKey": "declaration:ec73cf27be2087cb9d2c185b",
    "name": "set",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const set: {\n    <K extends string, V>(key: K, value: V): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n    <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>, key: K, value: V): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefRecord.ts",
            "start": {
              "line": 84,
              "column": 14
            },
            "end": {
              "line": 96,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<K extends string, V>(key: K, value: V): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;",
          "<K extends string, V, E, R>(ref: RefRecord<K, V, E, R>, key: K, value: V): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;"
        ],
        "typeParameters": [
          "K extends string",
          "V",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefRecord.ts",
            "start": {
              "line": 85,
              "column": 3
            },
            "end": {
              "line": 88,
              "column": 93
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefRecord.ts",
            "start": {
              "line": 89,
              "column": 3
            },
            "end": {
              "line": 93,
              "column": 55
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const set: {\n    <K extends string, V>(key: K, value: V): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n    <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>, key: K, value: V): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
    ],
    "typeParameters": [
      "K extends string",
      "V",
      "E",
      "R"
    ],
    "summary": "Set a key-value pair in the Record.",
    "sections": {
      "Why": "Keeps set atomic with respect to competing RefSubject writes instead of splitting the read and\nreplacement into separate effects.",
      "Ownership and lifetime": "Running set performs one serialized record transition and resolves with its committed value. It\nacquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 84,
          "column": 14
        },
        "end": {
          "line": 96,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 85,
          "column": 3
        },
        "end": {
          "line": 88,
          "column": 93
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 89,
          "column": 3
        },
        "end": {
          "line": 93,
          "column": 55
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
