Skip to content
Interfacecorev0.10.0

InteractionMiddlewareOptions

Registration options for an interaction middleware.

interface InteractionMiddlewareOptions<
    Kinds extends NonEmptyTuple<MiddlewareKind>
>

Properties

kinds

Restrict this middleware to certain interaction kinds. The middleware's generic must list the same kinds, or applying the decorator is a compile error. Omit it to run on every repliable kind.

readonly kinds?: Kinds

priority

Lower runs earlier. Two middleware sharing a priority run in registration order.

readonly priority?: number

Default:0