{
  "id": "@typed/fx#RefRecord.union",
  "canonicalId": "@typed/fx/RefRecord#union",
  "symbol": {
    "id": "@typed/fx#RefRecord.union",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefRecord.union",
    "kind": "constant",
    "signatures": [
      "export declare const union: {\n    <K extends string, V>(that: Record.ReadonlyRecord<K, V>, combine?: (selfValue: V, thatValue: V) => 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>, that: Record.ReadonlyRecord<K, V>, combine?: (selfValue: V, thatValue: V) => V): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
    ],
    "summary": "Union with another record.",
    "sections": {
      "Why": "Combines bulk record changes in one committed value, giving subscribers one coherent update\nrather than a partially applied sequence.",
      "Ownership and lifetime": "Running union performs one serialized record transition and resolves with its committed value.\nIt acquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefRecord.ts",
      "line": 233
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefRecord.union",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefRecord",
    "qualifiedName": "RefRecord.union",
    "declarationKey": "declaration:245e5e91aeb2cb891da63358",
    "family": "variable",
    "signatures": [
      "export declare const union: {\n    <K extends string, V>(that: Record.ReadonlyRecord<K, V>, combine?: (selfValue: V, thatValue: V) => 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>, that: Record.ReadonlyRecord<K, V>, combine?: (selfValue: V, thatValue: V) => V): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 233,
          "column": 14
        },
        "end": {
          "line": 255,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 234,
          "column": 3
        },
        "end": {
          "line": 237,
          "column": 93
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 238,
          "column": 3
        },
        "end": {
          "line": 242,
          "column": 55
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefRecord#union"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefRecord",
    "static": false,
    "importedFrom": "declaration:245e5e91aeb2cb891da63358"
  },
  "declaration": {
    "declarationKey": "declaration:245e5e91aeb2cb891da63358",
    "name": "union",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const union: {\n    <K extends string, V>(that: Record.ReadonlyRecord<K, V>, combine?: (selfValue: V, thatValue: V) => 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>, that: Record.ReadonlyRecord<K, V>, combine?: (selfValue: V, thatValue: V) => V): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefRecord.ts",
            "start": {
              "line": 233,
              "column": 14
            },
            "end": {
              "line": 255,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<K extends string, V>(that: Record.ReadonlyRecord<K, V>, combine?: (selfValue: V, thatValue: V) => 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>, that: Record.ReadonlyRecord<K, V>, combine?: (selfValue: V, thatValue: V) => 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": 234,
              "column": 3
            },
            "end": {
              "line": 237,
              "column": 93
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefRecord.ts",
            "start": {
              "line": 238,
              "column": 3
            },
            "end": {
              "line": 242,
              "column": 55
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const union: {\n    <K extends string, V>(that: Record.ReadonlyRecord<K, V>, combine?: (selfValue: V, thatValue: V) => 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>, that: Record.ReadonlyRecord<K, V>, combine?: (selfValue: V, thatValue: V) => V): Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;\n};"
    ],
    "typeParameters": [
      "K extends string",
      "V",
      "E",
      "R"
    ],
    "summary": "Union with another record.",
    "sections": {
      "Why": "Combines bulk record changes in one committed value, giving subscribers one coherent update\nrather than a partially applied sequence.",
      "Ownership and lifetime": "Running union performs one serialized record transition and resolves with its committed value.\nIt acquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 233,
          "column": 14
        },
        "end": {
          "line": 255,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 234,
          "column": 3
        },
        "end": {
          "line": 237,
          "column": 93
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefRecord.ts",
        "start": {
          "line": 238,
          "column": 3
        },
        "end": {
          "line": 242,
          "column": 55
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
