Skip to content

Commit 03db0d3

Browse files
KamilKamil
authored andcommitted
improvement(@nestjs/common) add missing typings to custom param factory
1 parent 7ad6095 commit 03db0d3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
export type CustomParamFactory = (data, req) => any;
1+
export type CustomParamFactory<TData = any, TRequest = any, TResult = any> = (
2+
data: TData,
3+
req: TRequest,
4+
) => TResult;

0 commit comments

Comments
 (0)