{
  "id": "@typed/fx/Versioned#Versioned.Service",
  "canonicalId": "@typed/fx/Versioned#Versioned.Service",
  "symbol": {
    "id": "@typed/fx/Versioned#Versioned.Service",
    "packageName": "@typed/fx",
    "moduleName": "Versioned",
    "exportName": "Versioned.Service",
    "kind": "interface",
    "signatures": [
      "interface Service<Self, Id extends string, E1, A2, E2, A3, E3> extends Versioned<Self, E1, A2, E2, Self, A3, E3, Self> {\n    readonly id: Id;\n    readonly service: Context.Service<Self, Versioned<never, E1, A2, E2, never, A3, E3, never>>;\n    readonly make: <R1 = never, R2 = never, R3 = never>(version: Effect.Effect<number, E1, R1>, fx: Fx.Fx<A2, E2, R2>, effect: Effect.Effect<A3, E3, R3>) => Layer.Layer<Self, never, Exclude<R1 | R2 | R3, Scope.Scope>>;\n}"
    ],
    "summary": "Defines the service state contract.",
    "sections": {
      "Why": "Creates an Effect service tag that exposes current reads, pushed updates, and versions through\none Layer-provided state dependency.",
      "Ownership and lifetime": "Service is a contract and performs no acquisition. Implementations retain the errors,\nservices, interruption, and Scope requirements expressed by its members.",
      "Property: id": "Exposes id on the versioned contract.",
      "Property: id: Why": "Retains the literal service identifier for tooling, diagnostics, and Layer composition.",
      "Property: id: Ownership and lifetime": "id does not own its inputs. Observation and current reads retain upstream lifetime, typed\nfailures, services, and interruption behavior.",
      "Property: make": "Exposes make on the versioned contract.",
      "Property: make: Why": "Builds one Versioned value from independently typed version, update, and current-value channels\ninstead of forcing them into one error or environment type.",
      "Property: make: Ownership and lifetime": "Construction is lazy with respect to the Fx channel. Current reads share in-flight work until\ninterrupt is run; each component retains its declared errors and services.",
      "Property: service": "Exposes service on the versioned contract.",
      "Property: service: Why": "Exposes the underlying Effect Context service used by the generated Versioned class.",
      "Property: service: Ownership and lifetime": "service does not own its inputs. Observation and current reads retain upstream lifetime,\ntyped failures, services, and interruption behavior."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Versioned/Versioned.ts",
      "line": 196
    },
    "since": "1.0.0",
    "category": "Services"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Versioned#Versioned.Service",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": "Versioned",
    "consumerSpecifier": "@typed/fx/Versioned",
    "exportName": "Versioned",
    "qualifiedName": "Versioned.Service",
    "declarationKey": "declaration:c79db6df1d18499d24db2899",
    "family": "interface",
    "signatures": [
      "interface Service<Self, Id extends string, E1, A2, E2, A3, E3> extends Versioned<Self, E1, A2, E2, Self, A3, E3, Self> {\n    readonly id: Id;\n    readonly service: Context.Service<Self, Versioned<never, E1, A2, E2, never, A3, E3, never>>;\n    readonly make: <R1 = never, R2 = never, R3 = never>(version: Effect.Effect<number, E1, R1>, fx: Fx.Fx<A2, E2, R2>, effect: Effect.Effect<A3, E3, R3>) => Layer.Layer<Self, never, Exclude<R1 | R2 | R3, Scope.Scope>>;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 196,
          "column": 3
        },
        "end": {
          "line": 262,
          "column": 4
        }
      },
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 222,
          "column": 5
        },
        "end": {
          "line": 222,
          "column": 21
        }
      },
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 257,
          "column": 5
        },
        "end": {
          "line": 261,
          "column": 71
        }
      },
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 239,
          "column": 5
        },
        "end": {
          "line": 239,
          "column": 97
        }
      }
    ],
    "aliases": [
      "@typed/fx#Versioned.Versioned.Service"
    ],
    "isAlias": false,
    "parentId": "@typed/fx/Versioned#Versioned",
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:c79db6df1d18499d24db2899",
    "name": "Service",
    "family": "interface",
    "facets": [
      {
        "family": "interface",
        "syntaxKind": "InterfaceDeclaration",
        "signatures": [
          "interface Service<Self, Id extends string, E1, A2, E2, A3, E3> extends Versioned<Self, E1, A2, E2, Self, A3, E3, Self> {\n    readonly id: Id;\n    readonly service: Context.Service<Self, Versioned<never, E1, A2, E2, never, A3, E3, never>>;\n    readonly make: <R1 = never, R2 = never, R3 = never>(version: Effect.Effect<number, E1, R1>, fx: Fx.Fx<A2, E2, R2>, effect: Effect.Effect<A3, E3, R3>) => Layer.Layer<Self, never, Exclude<R1 | R2 | R3, Scope.Scope>>;\n}"
        ],
        "typeParameters": [
          "Self",
          "Id extends string",
          "E1",
          "A2",
          "E2",
          "A3",
          "E3"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Versioned/Versioned.ts",
            "start": {
              "line": 196,
              "column": 3
            },
            "end": {
              "line": 262,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly id: Id;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Versioned/Versioned.ts",
            "start": {
              "line": 222,
              "column": 5
            },
            "end": {
              "line": 222,
              "column": 21
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly make: <R1 = never, R2 = never, R3 = never>(version: Effect.Effect<number, E1, R1>, fx: Fx.Fx<A2, E2, R2>, effect: Effect.Effect<A3, E3, R3>) => Layer.Layer<Self, never, Exclude<R1 | R2 | R3, Scope.Scope>>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Versioned/Versioned.ts",
            "start": {
              "line": 257,
              "column": 5
            },
            "end": {
              "line": 261,
              "column": 71
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly service: Context.Service<Self, Versioned<never, E1, A2, E2, never, A3, E3, never>>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Versioned/Versioned.ts",
            "start": {
              "line": 239,
              "column": 5
            },
            "end": {
              "line": 239,
              "column": 97
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "interface Service<Self, Id extends string, E1, A2, E2, A3, E3> extends Versioned<Self, E1, A2, E2, Self, A3, E3, Self> {\n    readonly id: Id;\n    readonly service: Context.Service<Self, Versioned<never, E1, A2, E2, never, A3, E3, never>>;\n    readonly make: <R1 = never, R2 = never, R3 = never>(version: Effect.Effect<number, E1, R1>, fx: Fx.Fx<A2, E2, R2>, effect: Effect.Effect<A3, E3, R3>) => Layer.Layer<Self, never, Exclude<R1 | R2 | R3, Scope.Scope>>;\n}"
    ],
    "typeParameters": [
      "Self",
      "Id extends string",
      "E1",
      "A2",
      "E2",
      "A3",
      "E3"
    ],
    "summary": "Defines the service state contract.",
    "sections": {
      "Why": "Creates an Effect service tag that exposes current reads, pushed updates, and versions through\none Layer-provided state dependency.",
      "Ownership and lifetime": "Service is a contract and performs no acquisition. Implementations retain the errors,\nservices, interruption, and Scope requirements expressed by its members.",
      "Property: id": "Exposes id on the versioned contract.",
      "Property: id: Why": "Retains the literal service identifier for tooling, diagnostics, and Layer composition.",
      "Property: id: Ownership and lifetime": "id does not own its inputs. Observation and current reads retain upstream lifetime, typed\nfailures, services, and interruption behavior.",
      "Property: make": "Exposes make on the versioned contract.",
      "Property: make: Why": "Builds one Versioned value from independently typed version, update, and current-value channels\ninstead of forcing them into one error or environment type.",
      "Property: make: Ownership and lifetime": "Construction is lazy with respect to the Fx channel. Current reads share in-flight work until\ninterrupt is run; each component retains its declared errors and services.",
      "Property: service": "Exposes service on the versioned contract.",
      "Property: service: Why": "Exposes the underlying Effect Context service used by the generated Versioned class.",
      "Property: service: Ownership and lifetime": "service does not own its inputs. Observation and current reads retain upstream lifetime,\ntyped failures, services, and interruption behavior."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 196,
          "column": 3
        },
        "end": {
          "line": 262,
          "column": 4
        }
      },
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 222,
          "column": 5
        },
        "end": {
          "line": 222,
          "column": 21
        }
      },
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 257,
          "column": 5
        },
        "end": {
          "line": 261,
          "column": 71
        }
      },
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 239,
          "column": 5
        },
        "end": {
          "line": 239,
          "column": 97
        }
      }
    ],
    "since": "1.0.0",
    "category": "Services"
  }
}
