We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8149119 commit f51c1eeCopy full SHA for f51c1ee
index.d.ts
@@ -60,10 +60,19 @@ export declare type HandlerFunction = (
60
res: Response,
61
next?: NextFunction
62
) => void | any | Promise<any>;
63
+
64
export declare type LoggerFunction = (
65
message?: any,
- ...optionalParams: any[]
66
+ additionalInfo?: LoggerFunctionAdditionalInfo
67
) => void;
68
+export declare type LoggerFunctionAdditionalInfo =
69
+ | string
70
+ | number
71
+ | boolean
72
+ | null
73
+ | LoggerFunctionAdditionalInfo[]
74
+ | { [key: string]: LoggerFunctionAdditionalInfo };
75
76
export declare type NextFunction = () => void;
77
export declare type TimestampFunction = () => string;
78
export declare type SerializerFunction = (body: object) => string;
0 commit comments