{
  "id": "@typed/template#EventHandler.Error",
  "canonicalId": "@typed/template/EventHandler#Error",
  "symbol": {
    "id": "@typed/template#EventHandler.Error",
    "packageName": "@typed/template",
    "moduleName": ".",
    "exportName": "EventHandler.Error",
    "kind": "type",
    "signatures": [
      "export type Error<T> = T extends EventHandler<infer _Ev, infer E, infer _R> ? E : never;"
    ],
    "summary": "Extracts the typed error channel of an `EventHandler`.",
    "sections": {
      "Why": "Handler failures remain visible when a handler is embedded in a template.",
      "Ownership and lifetime": "This is a compile-time projection and has no runtime lifetime."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import type { Error, EventHandler } from \"@typed/template/EventHandler\"\n\ntype Failure = Error<EventHandler<MouseEvent, \"save-failed\">>"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/EventHandler.ts",
      "line": 228
    },
    "since": "1.0.0",
    "category": "Handler failures"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template#EventHandler.Error",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/template",
    "exportName": "EventHandler",
    "qualifiedName": "EventHandler.Error",
    "declarationKey": "declaration:d8db572f390e62524afe51fc",
    "family": "type-alias",
    "signatures": [
      "export type Error<T> = T extends EventHandler<infer _Ev, infer E, infer _R> ? E : never;"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/EventHandler.ts",
        "start": {
          "line": 228,
          "column": 1
        },
        "end": {
          "line": 228,
          "column": 89
        }
      }
    ],
    "aliases": [
      "@typed/template/EventHandler#Error"
    ],
    "isAlias": true,
    "parentId": "@typed/template#EventHandler",
    "static": false,
    "importedFrom": "declaration:d8db572f390e62524afe51fc"
  },
  "declaration": {
    "declarationKey": "declaration:d8db572f390e62524afe51fc",
    "name": "Error",
    "family": "type-alias",
    "facets": [
      {
        "family": "type-alias",
        "syntaxKind": "TypeAliasDeclaration",
        "signatures": [
          "export type Error<T> = T extends EventHandler<infer _Ev, infer E, infer _R> ? E : never;"
        ],
        "typeParameters": [
          "T"
        ],
        "sourceSpans": [
          {
            "file": "packages/template/src/EventHandler.ts",
            "start": {
              "line": 228,
              "column": 1
            },
            "end": {
              "line": 228,
              "column": 89
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export type Error<T> = T extends EventHandler<infer _Ev, infer E, infer _R> ? E : never;"
    ],
    "typeParameters": [
      "T"
    ],
    "summary": "Extracts the typed error channel of an `EventHandler`.",
    "sections": {
      "Why": "Handler failures remain visible when a handler is embedded in a template.",
      "Ownership and lifetime": "This is a compile-time projection and has no runtime lifetime."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import type { Error, EventHandler } from \"@typed/template/EventHandler\"\n\ntype Failure = Error<EventHandler<MouseEvent, \"save-failed\">>"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/EventHandler.ts",
        "start": {
          "line": 228,
          "column": 1
        },
        "end": {
          "line": 228,
          "column": 89
        }
      }
    ],
    "since": "1.0.0",
    "category": "Handler failures"
  }
}
