# WaitForOptions

`interface` in `event-emitter` · v0.1.8

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

Options for [`waitFor`](/docs/packages/event-emitter/0.1.8/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.
