{
  "id": "@typed/fx/RefSubject#tuple",
  "canonicalId": "@typed/fx/RefSubject#tuple",
  "symbol": {
    "id": "@typed/fx/RefSubject#tuple",
    "packageName": "@typed/fx",
    "moduleName": "RefSubject",
    "exportName": "tuple",
    "kind": "function",
    "signatures": [
      "export declare function tuple<const Refs extends ReadonlyArray<Ref>>(refs: Refs): TupleFrom<Refs>;"
    ],
    "summary": "Combines multiple `RefSubject`, `Computed`, or `Filtered` instances into a single tuple.",
    "sections": {
      "Why": "Combines several refs into one state value while preserving whether the result is writable,\ncomputed, or filtered from its inputs.",
      "Ownership and lifetime": "This declaration performs no acquisition and retains no resources. Implementations preserve\nsource errors, services, and lifetime."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as RefSubject from \"@typed/fx/RefSubject\"\n\nconst program = Effect.gen(function* () {\n  const x = yield* RefSubject.make(10)\n  const y = yield* RefSubject.make(20)\n  const z = yield* RefSubject.make(30)\n\n  // Combine into a tuple\n  const point = RefSubject.tuple([x, y, z])\n\n  const coords = yield* point\n  console.log(coords) // [10, 20, 30]\n\n  // Update one value\n  yield* RefSubject.set(x, 15)\n\n  // Tuple automatically updates\n  const updated = yield* point\n  console.log(updated) // [15, 20, 30]\n})"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefSubject.ts",
      "line": 3851
    },
    "since": "1.0.0",
    "category": "State composition"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefSubject#tuple",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "RefSubject",
    "consumerSpecifier": "@typed/fx/RefSubject",
    "exportName": "tuple",
    "qualifiedName": "tuple",
    "declarationKey": "declaration:903e41a54317b0dc0ade30cd",
    "family": "function",
    "signatures": [
      "export declare function tuple<const Refs extends ReadonlyArray<Ref>>(refs: Refs): TupleFrom<Refs>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 3851,
          "column": 1
        },
        "end": {
          "line": 3861,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefSubject.tuple"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:903e41a54317b0dc0ade30cd",
    "name": "tuple",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function tuple<const Refs extends ReadonlyArray<Ref>>(refs: Refs): TupleFrom<Refs>;"
        ],
        "typeParameters": [
          "const Refs extends ReadonlyArray<Ref>"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefSubject.ts",
            "start": {
              "line": 3851,
              "column": 1
            },
            "end": {
              "line": 3861,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function tuple<const Refs extends ReadonlyArray<Ref>>(refs: Refs): TupleFrom<Refs>;"
    ],
    "typeParameters": [
      "const Refs extends ReadonlyArray<Ref>"
    ],
    "summary": "Combines multiple `RefSubject`, `Computed`, or `Filtered` instances into a single tuple.",
    "sections": {
      "Why": "Combines several refs into one state value while preserving whether the result is writable,\ncomputed, or filtered from its inputs.",
      "Ownership and lifetime": "This declaration performs no acquisition and retains no resources. Implementations preserve\nsource errors, services, and lifetime."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as RefSubject from \"@typed/fx/RefSubject\"\n\nconst program = Effect.gen(function* () {\n  const x = yield* RefSubject.make(10)\n  const y = yield* RefSubject.make(20)\n  const z = yield* RefSubject.make(30)\n\n  // Combine into a tuple\n  const point = RefSubject.tuple([x, y, z])\n\n  const coords = yield* point\n  console.log(coords) // [10, 20, 30]\n\n  // Update one value\n  yield* RefSubject.set(x, 15)\n\n  // Tuple automatically updates\n  const updated = yield* point\n  console.log(updated) // [15, 20, 30]\n})"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 3851,
          "column": 1
        },
        "end": {
          "line": 3861,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "State composition"
  }
}
