Skip to content
GitHub

InterceptorOptions

interface in meocord/interface Since 4.1.0

interface InterceptorOptions

What @Interceptor takes: the context types the interceptor runs for.

Members

types

types?: readonly ExecutionContextType[]

The context types the interceptor runs for, as ExecutionContext.getType() reports them; it is skipped for any other call. A subclass inherits them unless it declares its own. A global interceptor also runs around @On handlers, unless the app sets globalStagesOnEvents: false.

Default: every type

See also

  • Interceptor