{
  "id": "@typed/template#EventHandler.EventOf",
  "canonicalId": "@typed/template/EventHandler#EventOf",
  "symbol": {
    "id": "@typed/template#EventHandler.EventOf",
    "packageName": "@typed/template",
    "moduleName": ".",
    "exportName": "EventHandler.EventOf",
    "kind": "type",
    "signatures": [
      "export type EventOf<T> = T extends EventHandler<infer Ev, infer _E, infer _R> ? Ev : never;"
    ],
    "summary": "Extracts the native event type accepted by an `EventHandler`.",
    "sections": {
      "Why": "Integrations can recover the browser event type accepted by the handler.\nEventSource invokes that handler with its forwarding `Proxy`, so the static\nevent type is preserved even though callback object identity is distinct.",
      "Ownership and lifetime": "This is a compile-time projection and owns no event object."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import type { EventHandler, EventOf } from \"@typed/template/EventHandler\"\n\ntype Click = EventOf<EventHandler<MouseEvent>>"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/EventHandler.ts",
      "line": 254
    },
    "since": "1.0.0",
    "category": "Native event types"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template#EventHandler.EventOf",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/template",
    "exportName": "EventHandler",
    "qualifiedName": "EventHandler.EventOf",
    "declarationKey": "declaration:d56de75d75043b52014426a7",
    "family": "type-alias",
    "signatures": [
      "export type EventOf<T> = T extends EventHandler<infer Ev, infer _E, infer _R> ? Ev : never;"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/EventHandler.ts",
        "start": {
          "line": 254,
          "column": 1
        },
        "end": {
          "line": 254,
          "column": 92
        }
      }
    ],
    "aliases": [
      "@typed/template/EventHandler#EventOf"
    ],
    "isAlias": true,
    "parentId": "@typed/template#EventHandler",
    "static": false,
    "importedFrom": "declaration:d56de75d75043b52014426a7"
  },
  "declaration": {
    "declarationKey": "declaration:d56de75d75043b52014426a7",
    "name": "EventOf",
    "family": "type-alias",
    "facets": [
      {
        "family": "type-alias",
        "syntaxKind": "TypeAliasDeclaration",
        "signatures": [
          "export type EventOf<T> = T extends EventHandler<infer Ev, infer _E, infer _R> ? Ev : never;"
        ],
        "typeParameters": [
          "T"
        ],
        "sourceSpans": [
          {
            "file": "packages/template/src/EventHandler.ts",
            "start": {
              "line": 254,
              "column": 1
            },
            "end": {
              "line": 254,
              "column": 92
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export type EventOf<T> = T extends EventHandler<infer Ev, infer _E, infer _R> ? Ev : never;"
    ],
    "typeParameters": [
      "T"
    ],
    "summary": "Extracts the native event type accepted by an `EventHandler`.",
    "sections": {
      "Why": "Integrations can recover the browser event type accepted by the handler.\nEventSource invokes that handler with its forwarding `Proxy`, so the static\nevent type is preserved even though callback object identity is distinct.",
      "Ownership and lifetime": "This is a compile-time projection and owns no event object."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import type { EventHandler, EventOf } from \"@typed/template/EventHandler\"\n\ntype Click = EventOf<EventHandler<MouseEvent>>"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/EventHandler.ts",
        "start": {
          "line": 254,
          "column": 1
        },
        "end": {
          "line": 254,
          "column": 92
        }
      }
    ],
    "since": "1.0.0",
    "category": "Native event types"
  }
}
