{
  "id": "@typed/fx/RefSubject#makeComputed",
  "canonicalId": "@typed/fx/RefSubject#makeComputed",
  "symbol": {
    "id": "@typed/fx/RefSubject#makeComputed",
    "packageName": "@typed/fx",
    "moduleName": "RefSubject",
    "exportName": "makeComputed",
    "kind": "function",
    "signatures": [
      "export declare function makeComputed<R0, E0, A, E, R, E2, R2, C, E3, R3>(input: Versioned.Versioned<R0, E0, A, E, R, A, E2, R2>, f: (a: A) => Effect.Effect<C, E3, R3>): Computed<C, E0 | E | E2 | E3, R0 | R2 | R3 | Exclude<R, Scope.Scope>>;"
    ],
    "summary": "Builds a read-only Computed projection from a Versioned source.",
    "sections": {
      "Why": "Applies the same Effectful projection to current reads and pushed versions, preserving all three\nVersioned channels without granting writes to the source.",
      "Ownership and lifetime": "Current reads cache the transformed input by source version within each Effect Context. The\npushed channel uses `Subject.hold`: observers with the same Context object share one upstream\nsession and its retained projection; distinct Context objects have separate sessions. The last\nobserver ends its session and clears its held value. The observing Scope owns cleanup."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefSubject.ts",
      "line": 927
    },
    "since": "1.18.0",
    "category": "Derived queries"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefSubject#makeComputed",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "RefSubject",
    "consumerSpecifier": "@typed/fx/RefSubject",
    "exportName": "makeComputed",
    "qualifiedName": "makeComputed",
    "declarationKey": "declaration:f7797d8213d5d86d655451e0",
    "family": "function",
    "signatures": [
      "export declare function makeComputed<R0, E0, A, E, R, E2, R2, C, E3, R3>(input: Versioned.Versioned<R0, E0, A, E, R, A, E2, R2>, f: (a: A) => Effect.Effect<C, E3, R3>): Computed<C, E0 | E | E2 | E3, R0 | R2 | R3 | Exclude<R, Scope.Scope>>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 927,
          "column": 1
        },
        "end": {
          "line": 932,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefSubject.makeComputed"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:f7797d8213d5d86d655451e0",
    "name": "makeComputed",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function makeComputed<R0, E0, A, E, R, E2, R2, C, E3, R3>(input: Versioned.Versioned<R0, E0, A, E, R, A, E2, R2>, f: (a: A) => Effect.Effect<C, E3, R3>): Computed<C, E0 | E | E2 | E3, R0 | R2 | R3 | Exclude<R, Scope.Scope>>;"
        ],
        "typeParameters": [
          "R0",
          "E0",
          "A",
          "E",
          "R",
          "E2",
          "R2",
          "C",
          "E3",
          "R3"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefSubject.ts",
            "start": {
              "line": 927,
              "column": 1
            },
            "end": {
              "line": 932,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function makeComputed<R0, E0, A, E, R, E2, R2, C, E3, R3>(input: Versioned.Versioned<R0, E0, A, E, R, A, E2, R2>, f: (a: A) => Effect.Effect<C, E3, R3>): Computed<C, E0 | E | E2 | E3, R0 | R2 | R3 | Exclude<R, Scope.Scope>>;"
    ],
    "typeParameters": [
      "R0",
      "E0",
      "A",
      "E",
      "R",
      "E2",
      "R2",
      "C",
      "E3",
      "R3"
    ],
    "summary": "Builds a read-only Computed projection from a Versioned source.",
    "sections": {
      "Why": "Applies the same Effectful projection to current reads and pushed versions, preserving all three\nVersioned channels without granting writes to the source.",
      "Ownership and lifetime": "Current reads cache the transformed input by source version within each Effect Context. The\npushed channel uses `Subject.hold`: observers with the same Context object share one upstream\nsession and its retained projection; distinct Context objects have separate sessions. The last\nobserver ends its session and clears its held value. The observing Scope owns cleanup."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 927,
          "column": 1
        },
        "end": {
          "line": 932,
          "column": 2
        }
      }
    ],
    "since": "1.18.0",
    "category": "Derived queries"
  }
}
