> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# emit

> emit API documentation

# emit

## Signature

```typescript theme={null}
emit<K extends keyof EditorEventsMap>(event: K, ...args: EditorEventsMap[K]): void;
```

## Parameters

### event

**Type**:`K`

### args

**Type**:`EditorEventsMap[K]`

## Returns

**Type**:`void`
