{
  "id": "@typed/fx#RefTuple.make",
  "canonicalId": "@typed/fx/RefTuple#make",
  "symbol": {
    "id": "@typed/fx#RefTuple.make",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefTuple.make",
    "kind": "function",
    "signatures": [
      "export declare function make<T extends ReadonlyArray<unknown>, E = never, R = never>(initial: T | Effect.Effect<T, E, R> | Fx.Fx<T, E, R>, eq?: Equivalence<T>): Effect.Effect<RefTuple<T, E>, never, R | Scope.Scope>;"
    ],
    "summary": "Creates a new `RefTuple` from a tuple, `Effect`, or `Fx`.",
    "sections": {
      "Why": "Creates tuple state with equality suited to that Effect data type, so unchanged values do not\nproduce redundant pushed updates.",
      "Ownership and lifetime": "The creation Effect requires Scope. It owns initializer acquisition, live source subscriptions,\nand cleanup; source failures and services stay on reads and pushes."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Tuple } from \"effect\"\nimport * as RefTuple from \"@typed/fx/RefTuple\"\n\nconst program = Effect.gen(function* () {\n  const value = yield* RefTuple.make(Tuple.make(1, \"hello\", true))\n  const current = yield* value\n  console.log(current) // [1, \"hello\", true]\n})"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefTuple.ts",
      "line": 67
    },
    "since": "1.18.0",
    "category": "Constructors"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefTuple.make",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefTuple",
    "qualifiedName": "RefTuple.make",
    "declarationKey": "declaration:e7ba120bc0a4e5efb86e3583",
    "family": "function",
    "signatures": [
      "export declare function make<T extends ReadonlyArray<unknown>, E = never, R = never>(initial: T | Effect.Effect<T, E, R> | Fx.Fx<T, E, R>, eq?: Equivalence<T>): Effect.Effect<RefTuple<T, E>, never, R | Scope.Scope>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefTuple.ts",
        "start": {
          "line": 67,
          "column": 1
        },
        "end": {
          "line": 72,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefTuple#make"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefTuple",
    "static": false,
    "importedFrom": "declaration:e7ba120bc0a4e5efb86e3583"
  },
  "declaration": {
    "declarationKey": "declaration:e7ba120bc0a4e5efb86e3583",
    "name": "make",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function make<T extends ReadonlyArray<unknown>, E = never, R = never>(initial: T | Effect.Effect<T, E, R> | Fx.Fx<T, E, R>, eq?: Equivalence<T>): Effect.Effect<RefTuple<T, E>, never, R | Scope.Scope>;"
        ],
        "typeParameters": [
          "T extends ReadonlyArray<unknown>",
          "E = never",
          "R = never"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefTuple.ts",
            "start": {
              "line": 67,
              "column": 1
            },
            "end": {
              "line": 72,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function make<T extends ReadonlyArray<unknown>, E = never, R = never>(initial: T | Effect.Effect<T, E, R> | Fx.Fx<T, E, R>, eq?: Equivalence<T>): Effect.Effect<RefTuple<T, E>, never, R | Scope.Scope>;"
    ],
    "typeParameters": [
      "T extends ReadonlyArray<unknown>",
      "E = never",
      "R = never"
    ],
    "summary": "Creates a new `RefTuple` from a tuple, `Effect`, or `Fx`.",
    "sections": {
      "Why": "Creates tuple state with equality suited to that Effect data type, so unchanged values do not\nproduce redundant pushed updates.",
      "Ownership and lifetime": "The creation Effect requires Scope. It owns initializer acquisition, live source subscriptions,\nand cleanup; source failures and services stay on reads and pushes."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Tuple } from \"effect\"\nimport * as RefTuple from \"@typed/fx/RefTuple\"\n\nconst program = Effect.gen(function* () {\n  const value = yield* RefTuple.make(Tuple.make(1, \"hello\", true))\n  const current = yield* value\n  console.log(current) // [1, \"hello\", true]\n})"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefTuple.ts",
        "start": {
          "line": 67,
          "column": 1
        },
        "end": {
          "line": 72,
          "column": 2
        }
      }
    ],
    "since": "1.18.0",
    "category": "Constructors"
  }
}
