# RefTarget

<!-- DO NOT EDIT: this page is autogenerated from the type comments -->

```ts
type RefTarget<TRef> = TRef | Target | null;
```

Defined in: [adapter.ts:669](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/adapter.ts#L669)

A framework ref, element, document, or window to listen on. A `null` or
`undefined` target, or a ref that is still unset, waits for the element.

## Type Parameters

### TRef

`TRef` = \{
  `current`: `HTMLElement` \| `null` \| `undefined`;
\}
