Skip to content

Commit 580fd87

Browse files
refactor(MiddlewareFunction): add generic type variable Args.
1 parent ada6f08 commit 580fd87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type/middleware-function.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
* @description
33
* @export
44
*/
5-
export type MiddlewareFunction = (args: any[], next: () => void) => void;
5+
export type MiddlewareFunction<Args = any> = (args: Args[], next: () => void) => void;

0 commit comments

Comments
 (0)