# EventSpec

`type` in `gateway` · v0.2.1-next.0

<https://docs.seedcord.org/packages/gateway/0.2.1-next.0/types/event-spec>

Tuple describing a single event and optional options.

## Declaration

```ts
type EventSpec<EventKey extends ValidNonInteractionKeys> = readonly [
    event: EventKey,
    options?: RegisterEventOptions
];
```
