Skip to content

Commit f51c1ee

Browse files
naorpeleddrpowell
andauthored
fix(request/log): resolve wrong type for additional info (#222)
Co-authored-by: Sleavely <123456+sleavely@users.noreply.github.com>
1 parent 8149119 commit f51c1ee

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

index.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,19 @@ export declare type HandlerFunction = (
6060
res: Response,
6161
next?: NextFunction
6262
) => void | any | Promise<any>;
63+
6364
export declare type LoggerFunction = (
6465
message?: any,
65-
...optionalParams: any[]
66+
additionalInfo?: LoggerFunctionAdditionalInfo
6667
) => void;
68+
export declare type LoggerFunctionAdditionalInfo =
69+
| string
70+
| number
71+
| boolean
72+
| null
73+
| LoggerFunctionAdditionalInfo[]
74+
| { [key: string]: LoggerFunctionAdditionalInfo };
75+
6776
export declare type NextFunction = () => void;
6877
export declare type TimestampFunction = () => string;
6978
export declare type SerializerFunction = (body: object) => string;

0 commit comments

Comments
 (0)