Thanks to visit codestin.com Credit goes to github.com
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 6a72a00 commit ed8cc2bCopy full SHA for ed8cc2b
1 file changed
src/log.ts
@@ -5,7 +5,9 @@ export interface LogOptions {}
5
6
const statusColors = { 1: c.blue, 2: c.green, 3: c.yellow } as const;
7
8
-export const log = (_options: LogOptions = {}): ServerMiddleware => {
+export const log: (options?: LogOptions) => ServerMiddleware = (
9
+ _options = {},
10
+) => {
11
return async (req, next) => {
12
const start = performance.now();
13
const res = await next();
0 commit comments