{
  "id": "@typed/fx#RefArray.make",
  "canonicalId": "@typed/fx/RefArray#make",
  "symbol": {
    "id": "@typed/fx#RefArray.make",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefArray.make",
    "kind": "function",
    "signatures": [
      "export declare function make<A, E = never, R = never>(initial: ReadonlyArray<A> | Effect.Effect<ReadonlyArray<A>, E, R> | Fx.Fx<ReadonlyArray<A>, E, R>, eq?: Equivalence<A>): Effect.Effect<RefArray<A, E>, never, R | Scope.Scope>;"
    ],
    "summary": "Creates a new `RefArray` from an array, `Effect`, or `Fx`.",
    "sections": {
      "Why": "Creates array 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 } from \"effect\"\nimport * as RefArray from \"@typed/fx/RefArray\"\n\n// From a plain array\nconst program1 = Effect.gen(function* () {\n  const items = yield* RefArray.make([1, 2, 3])\n  const values = yield* items\n  console.log(values) // [1, 2, 3]\n})\n\n// From an Effect\nconst program2 = Effect.gen(function* () {\n  const items = yield* RefArray.make(\n    Effect.succeed([\"a\", \"b\", \"c\"])\n  )\n  const values = yield* items\n  console.log(values) // [\"a\", \"b\", \"c\"]\n})"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefArray.ts",
      "line": 80
    },
    "since": "1.18.0",
    "category": "Constructors"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefArray.make",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefArray",
    "qualifiedName": "RefArray.make",
    "declarationKey": "declaration:9c0f1672b24513daa94452da",
    "family": "function",
    "signatures": [
      "export declare function make<A, E = never, R = never>(initial: ReadonlyArray<A> | Effect.Effect<ReadonlyArray<A>, E, R> | Fx.Fx<ReadonlyArray<A>, E, R>, eq?: Equivalence<A>): Effect.Effect<RefArray<A, E>, never, R | Scope.Scope>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 80,
          "column": 1
        },
        "end": {
          "line": 85,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefArray#make"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefArray",
    "static": false,
    "importedFrom": "declaration:9c0f1672b24513daa94452da"
  },
  "declaration": {
    "declarationKey": "declaration:9c0f1672b24513daa94452da",
    "name": "make",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function make<A, E = never, R = never>(initial: ReadonlyArray<A> | Effect.Effect<ReadonlyArray<A>, E, R> | Fx.Fx<ReadonlyArray<A>, E, R>, eq?: Equivalence<A>): Effect.Effect<RefArray<A, E>, never, R | Scope.Scope>;"
        ],
        "typeParameters": [
          "A",
          "E = never",
          "R = never"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefArray.ts",
            "start": {
              "line": 80,
              "column": 1
            },
            "end": {
              "line": 85,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function make<A, E = never, R = never>(initial: ReadonlyArray<A> | Effect.Effect<ReadonlyArray<A>, E, R> | Fx.Fx<ReadonlyArray<A>, E, R>, eq?: Equivalence<A>): Effect.Effect<RefArray<A, E>, never, R | Scope.Scope>;"
    ],
    "typeParameters": [
      "A",
      "E = never",
      "R = never"
    ],
    "summary": "Creates a new `RefArray` from an array, `Effect`, or `Fx`.",
    "sections": {
      "Why": "Creates array 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 } from \"effect\"\nimport * as RefArray from \"@typed/fx/RefArray\"\n\n// From a plain array\nconst program1 = Effect.gen(function* () {\n  const items = yield* RefArray.make([1, 2, 3])\n  const values = yield* items\n  console.log(values) // [1, 2, 3]\n})\n\n// From an Effect\nconst program2 = Effect.gen(function* () {\n  const items = yield* RefArray.make(\n    Effect.succeed([\"a\", \"b\", \"c\"])\n  )\n  const values = yield* items\n  console.log(values) // [\"a\", \"b\", \"c\"]\n})"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefArray.ts",
        "start": {
          "line": 80,
          "column": 1
        },
        "end": {
          "line": 85,
          "column": 2
        }
      }
    ],
    "since": "1.18.0",
    "category": "Constructors"
  }
}
