Skip to content
GitHub

DispatchedHandler

interface in meocord/testing Since 4.1.0

interface DispatchedHandler

One handler TestingModule.dispatch ran, and how its call ended.

Members

controller

controller: new (...args: any[]) => unknown

The handler's controller.

method

method: string

The handler method's name.

ran

ran: boolean

Whether the handler itself ran; false when a guard denied it or its input was refused.

error

error?: unknown

The error its call ended with, handled by a filter or answered by the fallback.