# Dom.currentTarget

Reads a native event's non-null current target during handler execution.

## Signatures

```ts
export declare function currentTarget<Target extends EventTarget>(event: Event): Target;
```

## Why

The DOM types `currentTarget` as nullable because the browser clears it after
dispatch. This helper makes the temporal constraint explicit and preserves a
caller-selected target type.

## Ownership and lifetime

The returned target is borrowed from the live dispatch. Do not treat it as a
component-owned node; the helper throws after the handler window closes.

## Examples

```ts
import { currentTarget } from "@typed/ui/Dom/Events"

const read = (event: Event) => currentTarget<HTMLInputElement>(event).value
```
