{
  "id": "@typed/fx#RefSubject.computedFromService",
  "canonicalId": "@typed/fx/RefSubject#computedFromService",
  "symbol": {
    "id": "@typed/fx#RefSubject.computedFromService",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "RefSubject.computedFromService",
    "kind": "function",
    "signatures": [
      "export declare function computedFromService<R, A, E, R2>(effect: Effect.Effect<Computed<A, E, R2>, never, R>): Computed<A, E, R | R2>;"
    ],
    "summary": "Lifts an Effect-provided Computed into a Computed facade.",
    "sections": {
      "Why": "Defers service lookup until each version read, current read, interruption, or Fx observation, so\ncallers can compose a Context-provided Computed without manually flat-mapping the service Effect.",
      "Ownership and lifetime": "The facade caches neither the resolved Computed nor its value. Each operation runs the supplied\nEffect, then delegates to the resolved Computed. Service requirements combine as `R | R2`, source\nfailures remain `E`, and the observing Scope owns the delegated subscription."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefSubject.ts",
      "line": 4274
    },
    "since": "1.18.0",
    "category": "Services"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#RefSubject.computedFromService",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "RefSubject",
    "qualifiedName": "RefSubject.computedFromService",
    "declarationKey": "declaration:8aa7c104e8d477f9ec6e86f4",
    "family": "function",
    "signatures": [
      "export declare function computedFromService<R, A, E, R2>(effect: Effect.Effect<Computed<A, E, R2>, never, R>): Computed<A, E, R | R2>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 4274,
          "column": 1
        },
        "end": {
          "line": 4278,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/fx/RefSubject#computedFromService"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#RefSubject",
    "static": false,
    "importedFrom": "declaration:8aa7c104e8d477f9ec6e86f4"
  },
  "declaration": {
    "declarationKey": "declaration:8aa7c104e8d477f9ec6e86f4",
    "name": "computedFromService",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function computedFromService<R, A, E, R2>(effect: Effect.Effect<Computed<A, E, R2>, never, R>): Computed<A, E, R | R2>;"
        ],
        "typeParameters": [
          "R",
          "A",
          "E",
          "R2"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefSubject.ts",
            "start": {
              "line": 4274,
              "column": 1
            },
            "end": {
              "line": 4278,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function computedFromService<R, A, E, R2>(effect: Effect.Effect<Computed<A, E, R2>, never, R>): Computed<A, E, R | R2>;"
    ],
    "typeParameters": [
      "R",
      "A",
      "E",
      "R2"
    ],
    "summary": "Lifts an Effect-provided Computed into a Computed facade.",
    "sections": {
      "Why": "Defers service lookup until each version read, current read, interruption, or Fx observation, so\ncallers can compose a Context-provided Computed without manually flat-mapping the service Effect.",
      "Ownership and lifetime": "The facade caches neither the resolved Computed nor its value. Each operation runs the supplied\nEffect, then delegates to the resolved Computed. Service requirements combine as `R | R2`, source\nfailures remain `E`, and the observing Scope owns the delegated subscription."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefSubject.ts",
        "start": {
          "line": 4274,
          "column": 1
        },
        "end": {
          "line": 4278,
          "column": 2
        }
      }
    ],
    "since": "1.18.0",
    "category": "Services"
  }
}
