File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import type { IncomingHttpHeaders } from 'http'
4
4
import path from 'path'
5
5
6
6
import express , { type Request , type RequestHandler } from 'express'
7
- // @ts -expect-error TS(7016) FIXME: Could not find a declaration file for module 'expr... Remove this comment to see the full error message
8
7
import expressLogging from 'express-logging'
9
8
import { jwtDecode } from 'jwt-decode'
10
9
Original file line number Diff line number Diff line change
1
+ declare module 'express-logging' {
2
+ import { RequestHandler } from 'express' ;
3
+
4
+ interface LoggerOptions { blacklist ?: string [ ] }
5
+
6
+ interface Logger {
7
+ info ( ...args : unknown [ ] ) : void ;
8
+ error ( ...args : unknown [ ] ) : void ;
9
+ warn ( ...args : unknown [ ] ) : void ;
10
+ debug ?( ...args : unknown [ ] ) : void ;
11
+ log ( ...args : unknown [ ] ) : void ;
12
+ }
13
+
14
+ function expressLogging ( logger ?: Logger , options ?: LoggerOptions ) : RequestHandler ;
15
+
16
+ export default expressLogging ;
17
+ }
You can’t perform that action at this time.
0 commit comments