{
  "id": "@typed/fx#RefSubject.hydrateAll",
  "canonicalId": "@typed/fx/RefSubject#hydrateAll",
  "symbol": {
    "id": "@typed/fx#RefSubject.hydrateAll",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefSubject.hydrateAll",
    "kind": "function",
    "signatures": [
      "export declare function hydrateAll<const Refs extends readonly [\n    HydratedRefSubject.Any,\n    ...HydratedRefSubject.Any[]\n]>(...refs: Refs): HydrationRef<HydratedRefSubject.HydrationError<Refs[number]>, HydratedRefSubject.HydrationServices<Refs[number]>>;"
    ],
    "summary": "Combines hydrated refs into one serialization and restoration boundary.",
    "sections": {
      "Why": "Combines member metadata so several refs serialize and restore as one boundary while retaining\neach member's errors and codec services.",
      "Ownership and lifetime": "The combined boundary acquires nothing and delegates lifetime to its member refs. Encoding or\ndecoding retains the members' Schema errors and services.\n\nNamed attributes must be unique. Unnamed members are encoded together and restored as a group,\nso normal initializers cannot race ahead of a partially decoded envelope.",
      "Synchronous configuration errors": "Combining two named refs whose normalized `data-*` attribute names are equal throws `TypeError`\nimmediately while `hydrateAll` is called. This duplicate-name check is a configuration error,\nnot a typed Schema failure. Member encoding and decoding errors remain `Schema.SchemaError`, and\ntheir codec services remain visible in the returned `HydrationRef`."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Schema } from \"effect\"\nimport * as Hydration from \"@typed/fx/RefSubject\"\n\nconst attributes = Effect.scoped(Effect.gen(function* () {\n  const count = yield* Hydration.hydrate(Schema.Finite, 0)\n  const status = yield* Hydration.hydrate(Schema.String, \"ready\")\n  const state = Hydration.hydrateAll(count, status)\n  return yield* state[Hydration.HydrationRefTypeId].toAttributes\n}))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/Hydration.ts",
      "line": 699
    },
    "since": "2.0.0",
    "category": "Hydration construction"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefSubject.hydrateAll",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefSubject",
    "qualifiedName": "RefSubject.hydrateAll",
    "declarationKey": "declaration:0283cb0c90708f49ce9fab4b",
    "family": "function",
    "signatures": [
      "export declare function hydrateAll<const Refs extends readonly [\n    HydratedRefSubject.Any,\n    ...HydratedRefSubject.Any[]\n]>(...refs: Refs): HydrationRef<HydratedRefSubject.HydrationError<Refs[number]>, HydratedRefSubject.HydrationServices<Refs[number]>>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 699,
          "column": 1
        },
        "end": {
          "line": 708,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefSubject#hydrateAll"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefSubject",
    "static": false,
    "importedFrom": "declaration:0283cb0c90708f49ce9fab4b"
  },
  "declaration": {
    "declarationKey": "declaration:0283cb0c90708f49ce9fab4b",
    "name": "hydrateAll",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function hydrateAll<const Refs extends readonly [\n    HydratedRefSubject.Any,\n    ...HydratedRefSubject.Any[]\n]>(...refs: Refs): HydrationRef<HydratedRefSubject.HydrationError<Refs[number]>, HydratedRefSubject.HydrationServices<Refs[number]>>;"
        ],
        "typeParameters": [
          "const Refs extends readonly [HydratedRefSubject.Any, ...HydratedRefSubject.Any[]]"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/Hydration.ts",
            "start": {
              "line": 699,
              "column": 1
            },
            "end": {
              "line": 708,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function hydrateAll<const Refs extends readonly [\n    HydratedRefSubject.Any,\n    ...HydratedRefSubject.Any[]\n]>(...refs: Refs): HydrationRef<HydratedRefSubject.HydrationError<Refs[number]>, HydratedRefSubject.HydrationServices<Refs[number]>>;"
    ],
    "typeParameters": [
      "const Refs extends readonly [HydratedRefSubject.Any, ...HydratedRefSubject.Any[]]"
    ],
    "summary": "Combines hydrated refs into one serialization and restoration boundary.",
    "sections": {
      "Why": "Combines member metadata so several refs serialize and restore as one boundary while retaining\neach member's errors and codec services.",
      "Ownership and lifetime": "The combined boundary acquires nothing and delegates lifetime to its member refs. Encoding or\ndecoding retains the members' Schema errors and services.\n\nNamed attributes must be unique. Unnamed members are encoded together and restored as a group,\nso normal initializers cannot race ahead of a partially decoded envelope.",
      "Synchronous configuration errors": "Combining two named refs whose normalized `data-*` attribute names are equal throws `TypeError`\nimmediately while `hydrateAll` is called. This duplicate-name check is a configuration error,\nnot a typed Schema failure. Member encoding and decoding errors remain `Schema.SchemaError`, and\ntheir codec services remain visible in the returned `HydrationRef`."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Schema } from \"effect\"\nimport * as Hydration from \"@typed/fx/RefSubject\"\n\nconst attributes = Effect.scoped(Effect.gen(function* () {\n  const count = yield* Hydration.hydrate(Schema.Finite, 0)\n  const status = yield* Hydration.hydrate(Schema.String, \"ready\")\n  const state = Hydration.hydrateAll(count, status)\n  return yield* state[Hydration.HydrationRefTypeId].toAttributes\n}))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/Hydration.ts",
        "start": {
          "line": 699,
          "column": 1
        },
        "end": {
          "line": 708,
          "column": 2
        }
      }
    ],
    "since": "2.0.0",
    "category": "Hydration construction"
  }
}
