Skip to content

Commit

Permalink
fix(request/log): resolve wrong type for additional info (#222)
Browse files Browse the repository at this point in the history
Co-authored-by: Sleavely <677030+sleavely@users.noreply.github.com>
  • Loading branch information
naorpeled and Sleavely committed Jan 13, 2023
1 parent 8149119 commit 8f5818a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,19 @@ export declare type HandlerFunction = (
res: Response,
next?: NextFunction
) => void | any | Promise<any>;

export declare type LoggerFunction = (
message?: any,
...optionalParams: any[]
additionalInfo?: LoggerFunctionAdditionalInfo
) => void;
export declare type LoggerFunctionAdditionalInfo =
| string
| number
| boolean
| null
| LoggerFunctionAdditionalInfo[]
| { [key: string]: LoggerFunctionAdditionalInfo };

export declare type NextFunction = () => void;
export declare type TimestampFunction = () => string;
export declare type SerializerFunction = (body: object) => string;
Expand Down

0 comments on commit 8f5818a

Please sign in to comment.