Type alias MiddlewareFn<C, U>
MiddlewareFn<C, U>: ((ctx, next) => Promise<unknown> | void)
Type Parameters
-
-
U extends Update = Update
Type declaration
-
- (ctx, next): Promise<unknown> | void
-
Parameters
-
ctx: C
-
next: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
Returns Promise<unknown> | void