Skip to content

Commit 2bfebf9

Browse files
feat(ContextMiddlewareFunction): add type for context middleware.
1 parent 580fd87 commit 2bfebf9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* @description
3+
* @export
4+
*/
5+
export type ContextMiddlewareFunction<Context = any> = (context: Context, next: () => void) => void;

src/type/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
export type { ContextMiddlewareFunction } from './context-middleware-function.type';
12
export type { MiddlewareFunction } from './middleware-function.type';

0 commit comments

Comments
 (0)