{
  "id": "@typed/template/EventHandler#Services",
  "canonicalId": "@typed/template/EventHandler#Services",
  "symbol": {
    "id": "@typed/template/EventHandler#Services",
    "packageName": "@typed/template",
    "moduleName": "EventHandler",
    "exportName": "Services",
    "kind": "type",
    "signatures": [
      "export type Services<T> = T extends EventHandler<infer _Ev, infer _E, infer R> ? R : never;"
    ],
    "summary": "Extracts the Effect service requirements of an `EventHandler`.",
    "sections": {
      "Why": "Template inference uses this helper to preserve the handler's `R` channel.",
      "Ownership and lifetime": "This is a compile-time projection and acquires no services."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import type { EventHandler, Services } from \"@typed/template/EventHandler\"\n\ntype Requirements = Services<EventHandler<MouseEvent, never, Console>>"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/EventHandler.ts",
      "line": 204
    },
    "since": "1.0.0",
    "category": "Handler requirements"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template/EventHandler#Services",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "EventHandler",
    "consumerSpecifier": "@typed/template/EventHandler",
    "exportName": "Services",
    "qualifiedName": "Services",
    "declarationKey": "declaration:9754b6d764660db831c5b1b7",
    "family": "type-alias",
    "signatures": [
      "export type Services<T> = T extends EventHandler<infer _Ev, infer _E, infer R> ? R : never;"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/EventHandler.ts",
        "start": {
          "line": 204,
          "column": 1
        },
        "end": {
          "line": 204,
          "column": 92
        }
      }
    ],
    "aliases": [
      "@typed/template#EventHandler.Services"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:9754b6d764660db831c5b1b7",
    "name": "Services",
    "family": "type-alias",
    "facets": [
      {
        "family": "type-alias",
        "syntaxKind": "TypeAliasDeclaration",
        "signatures": [
          "export type Services<T> = T extends EventHandler<infer _Ev, infer _E, infer R> ? R : never;"
        ],
        "typeParameters": [
          "T"
        ],
        "sourceSpans": [
          {
            "file": "packages/template/src/EventHandler.ts",
            "start": {
              "line": 204,
              "column": 1
            },
            "end": {
              "line": 204,
              "column": 92
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export type Services<T> = T extends EventHandler<infer _Ev, infer _E, infer R> ? R : never;"
    ],
    "typeParameters": [
      "T"
    ],
    "summary": "Extracts the Effect service requirements of an `EventHandler`.",
    "sections": {
      "Why": "Template inference uses this helper to preserve the handler's `R` channel.",
      "Ownership and lifetime": "This is a compile-time projection and acquires no services."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import type { EventHandler, Services } from \"@typed/template/EventHandler\"\n\ntype Requirements = Services<EventHandler<MouseEvent, never, Console>>"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/EventHandler.ts",
        "start": {
          "line": 204,
          "column": 1
        },
        "end": {
          "line": 204,
          "column": 92
        }
      }
    ],
    "since": "1.0.0",
    "category": "Handler requirements"
  }
}
