> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Type Alias: CreateFunction

> **CreateFunction** = (`eventName`: `string`, `node`: `Document` | `Element` | `Window` | `Node`, `init?`: `object`, `options?`: `object`) => `Event`

## Parameters

| Parameter              | Type                                               |
| ---------------------- | -------------------------------------------------- |
| `eventName`            | `string`                                           |
| `node`                 | `Document` \| `Element` \| `Window` \| `Node`      |
| `init?`                | \{ }                                               |
| `options?`             | \{ `defaultInit?`: \{ }; `EventType?`: `string`; } |
| `options.defaultInit?` | \{ }                                               |
| `options.EventType?`   | `string`                                           |

## Returns

`Event`
