{
  "id": "@typed/fx/RefStruct#make",
  "canonicalId": "@typed/fx/RefStruct#make",
  "symbol": {
    "id": "@typed/fx/RefStruct#make",
    "packageName": "@typed/fx",
    "moduleName": "RefStruct",
    "exportName": "make",
    "kind": "function",
    "signatures": [
      "export declare function make<S extends object, E = never, R = never>(initial: S | Effect.Effect<S, E, R> | Fx.Fx<S, E, R>, eq?: Equivalence<S>): Effect.Effect<RefStruct<S, E>, never, R | Scope.Scope>;"
    ],
    "summary": "Creates a new `RefStruct` from a struct, `Effect`, or `Fx`.",
    "sections": {
      "Why": "Creates struct 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 RefStruct from \"@typed/fx/RefStruct\"\n\nconst program = Effect.gen(function* () {\n  const value = yield* RefStruct.make({ name: \"John\", age: 30 })\n  const current = yield* value\n  console.log(current) // { name: \"John\", age: 30 }\n})"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefStruct.ts",
      "line": 67
    },
    "since": "1.18.0",
    "category": "Constructors"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefStruct#make",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "RefStruct",
    "consumerSpecifier": "@typed/fx/RefStruct",
    "exportName": "make",
    "qualifiedName": "make",
    "declarationKey": "declaration:2633c25b2671f586a2b81a8e",
    "family": "function",
    "signatures": [
      "export declare function make<S extends object, E = never, R = never>(initial: S | Effect.Effect<S, E, R> | Fx.Fx<S, E, R>, eq?: Equivalence<S>): Effect.Effect<RefStruct<S, E>, never, R | Scope.Scope>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefStruct.ts",
        "start": {
          "line": 67,
          "column": 1
        },
        "end": {
          "line": 72,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefStruct.make"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:2633c25b2671f586a2b81a8e",
    "name": "make",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function make<S extends object, E = never, R = never>(initial: S | Effect.Effect<S, E, R> | Fx.Fx<S, E, R>, eq?: Equivalence<S>): Effect.Effect<RefStruct<S, E>, never, R | Scope.Scope>;"
        ],
        "typeParameters": [
          "S extends object",
          "E = never",
          "R = never"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefStruct.ts",
            "start": {
              "line": 67,
              "column": 1
            },
            "end": {
              "line": 72,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function make<S extends object, E = never, R = never>(initial: S | Effect.Effect<S, E, R> | Fx.Fx<S, E, R>, eq?: Equivalence<S>): Effect.Effect<RefStruct<S, E>, never, R | Scope.Scope>;"
    ],
    "typeParameters": [
      "S extends object",
      "E = never",
      "R = never"
    ],
    "summary": "Creates a new `RefStruct` from a struct, `Effect`, or `Fx`.",
    "sections": {
      "Why": "Creates struct 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 RefStruct from \"@typed/fx/RefStruct\"\n\nconst program = Effect.gen(function* () {\n  const value = yield* RefStruct.make({ name: \"John\", age: 30 })\n  const current = yield* value\n  console.log(current) // { name: \"John\", age: 30 }\n})"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefStruct.ts",
        "start": {
          "line": 67,
          "column": 1
        },
        "end": {
          "line": 72,
          "column": 2
        }
      }
    ],
    "since": "1.18.0",
    "category": "Constructors"
  }
}
