Constructors
constructor
- new HearManager<C>(): HearManager<C>
Type Parameters
C extends Context<object, ContextDefaultState, string, string>
Properties
Private
composer
composer: Composer<C, C> = ... Private
fallbackHandler
fallbackHandler: Middleware<C> = skipMiddleware Accessors
length
- get length(): number
Returns number
middleware
- get middleware(): Middleware<C>
Returns Middleware<C>
Methods
hear
- hear<T>(hearConditions, handler): this
Parameters
handler: Middleware<C & T>
Returns this
onFallback
- onFallback(handler): this
Returns this
Private
recompose
- recompose(): void
Returns void
A handler that is called when handlers are not found