# WaitForOptions

`interface` in `event-emitter` · v0.1.0-next.0

<https://docs.seedcord.org/packages/event-emitter/0.1.0-next.0/interfaces/wait-for-options>

Options for [`waitFor`](/packages/event-emitter/0.1.0-next.0/classes/typed-event-emitter#wait-for).

```ts
interface WaitForOptions<
    TArgs extends readonly unknown[] = readonly unknown[]
>
```

## Properties

### filter

```ts
filter: (...args: TArgs) => boolean;
```

Resolves only on a payload this predicate accepts.

### signal

```ts
signal: AbortSignal;
```

Rejects the wait when this signal aborts.

### timeoutMs

```ts
timeoutMs: number;
```

Rejects the wait after this many milliseconds.
