Skip to content

Commit ff97b09

Browse files
matchaipi0
authored andcommitted
fix(ts): set message type to "any" (#39)
Consola supports logging for all types. Updates typings to allow `message` to be of type `any`. Closes #38
1 parent b5f8a80 commit ff97b09

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

types/consola.d.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
declare class Consola {
2-
static fatal (message: string): void;
3-
static error (message: string): void;
4-
static warn (message: string): void;
5-
static log (message: string): void;
6-
static info (message: string): void;
7-
static start (message: string): void;
8-
static success (message: string): void;
9-
static ready (message: string): void;
10-
static debug (message: string): void;
11-
static trace (message: string): void;
2+
static fatal (message: any): void;
3+
static error (message: any): void;
4+
static warn (message: any): void;
5+
static log (message: any): void;
6+
static info (message: any): void;
7+
static start (message: any): void;
8+
static success (message: any): void;
9+
static ready (message: any): void;
10+
static debug (message: any): void;
11+
static trace (message: any): void;
1212
static addReporter (reporter: (message: string) => void): (typeof Consola);
1313
static removeReporter (): (typeof Consola);
1414
static withTag (tag: string): (typeof Consola);

0 commit comments

Comments
 (0)