Skip to content

Commit 4ed8b0e

Browse files
committed
fix(log): add types to log function
1 parent dcdfb9c commit 4ed8b0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

logger.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ import { name } from "./package.json";
44

55
export const logger: ConsolaInstance = consola.withTag(name);
66

7-
export const log = (...args: unknown[]) => console.log(...args);
7+
export const log = (...args: Parameters<typeof logger.log>) =>
8+
logger.log(...args);

0 commit comments

Comments
 (0)