Skip to content

Commit ed8cc2b

Browse files
committed
chore: fix type issue
1 parent 6a72a00 commit ed8cc2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/log.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ export interface LogOptions {}
55

66
const statusColors = { 1: c.blue, 2: c.green, 3: c.yellow } as const;
77

8-
export const log = (_options: LogOptions = {}): ServerMiddleware => {
8+
export const log: (options?: LogOptions) => ServerMiddleware = (
9+
_options = {},
10+
) => {
911
return async (req, next) => {
1012
const start = performance.now();
1113
const res = await next();

0 commit comments

Comments
 (0)