{
  "id": "@typed/ui/index#Dom.currentTarget",
  "canonicalId": "@typed/ui/Dom/Events#currentTarget",
  "symbol": {
    "id": "@typed/ui/index#Dom.currentTarget",
    "packageName": "@typed/ui",
    "moduleName": "index",
    "exportName": "Dom.currentTarget",
    "kind": "function",
    "signatures": [
      "export declare function currentTarget<Target extends EventTarget>(event: Event): Target;"
    ],
    "summary": "Reads a native event's non-null current target during handler execution.",
    "sections": {
      "Why": "The DOM types `currentTarget` as nullable because the browser clears it after\ndispatch. This helper makes the temporal constraint explicit and preserves a\ncaller-selected target type.",
      "Ownership and lifetime": "The returned target is borrowed from the live dispatch. Do not treat it as a\ncomponent-owned node; the helper throws after the handler window closes."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { currentTarget } from \"@typed/ui/Dom/Events\"\n\nconst read = (event: Event) => currentTarget<HTMLInputElement>(event).value"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/ui/src/Dom/Events.ts",
      "line": 182
    },
    "since": "1.0.0",
    "category": "Event inspection"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/ui/index#Dom.currentTarget",
    "packageName": "@typed/ui",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": "index",
    "consumerSpecifier": "@typed/ui/index",
    "exportName": "Dom",
    "qualifiedName": "Dom.currentTarget",
    "declarationKey": "declaration:be387228f434541afa00a67d",
    "family": "function",
    "signatures": [
      "export declare function currentTarget<Target extends EventTarget>(event: Event): Target;"
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Dom/Events.ts",
        "start": {
          "line": 182,
          "column": 1
        },
        "end": {
          "line": 189,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/ui#Dom.currentTarget",
      "@typed/ui/Dom#currentTarget",
      "@typed/ui/Dom/Events#currentTarget",
      "@typed/ui/Dom/index#currentTarget"
    ],
    "isAlias": true,
    "parentId": "@typed/ui/index#Dom",
    "static": false,
    "importedFrom": "declaration:be387228f434541afa00a67d"
  },
  "declaration": {
    "declarationKey": "declaration:be387228f434541afa00a67d",
    "name": "currentTarget",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function currentTarget<Target extends EventTarget>(event: Event): Target;"
        ],
        "typeParameters": [
          "Target extends EventTarget"
        ],
        "sourceSpans": [
          {
            "file": "packages/ui/src/Dom/Events.ts",
            "start": {
              "line": 182,
              "column": 1
            },
            "end": {
              "line": 189,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function currentTarget<Target extends EventTarget>(event: Event): Target;"
    ],
    "typeParameters": [
      "Target extends EventTarget"
    ],
    "summary": "Reads a native event's non-null current target during handler execution.",
    "sections": {
      "Why": "The DOM types `currentTarget` as nullable because the browser clears it after\ndispatch. This helper makes the temporal constraint explicit and preserves a\ncaller-selected target type.",
      "Ownership and lifetime": "The returned target is borrowed from the live dispatch. Do not treat it as a\ncomponent-owned node; the helper throws after the handler window closes."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { currentTarget } from \"@typed/ui/Dom/Events\"\n\nconst read = (event: Event) => currentTarget<HTMLInputElement>(event).value"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/ui/src/Dom/Events.ts",
        "start": {
          "line": 182,
          "column": 1
        },
        "end": {
          "line": 189,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Event inspection"
  }
}
