Skip to content

Commit cea6b1e

Browse files
committed
fix(types): fix logger type
1 parent bbfa7d9 commit cea6b1e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

types/index.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ declare namespace Bree {
8686
type JobOptions = Required<Pick<Job, 'name'>> & Partial<Omit<Job, 'name'>>;
8787

8888
interface BreeConfigs {
89-
logger: Record<string, unknown> | boolean;
89+
logger: BreeLogger | boolean;
9090
root: string | boolean;
9191
silenceRootCheckError: boolean;
9292
doRootCheck: boolean;
@@ -114,4 +114,10 @@ declare namespace Bree {
114114
type PluginFunc<T = unknown> = (options: T, c: typeof Bree) => void;
115115

116116
function extend<T = unknown>(plugin: PluginFunc<T>, options?: T): Bree;
117+
118+
interface BreeLogger {
119+
info: (...args: any[]) => any;
120+
warn: (...args: any[]) => any;
121+
error: (...args: any[]) => any;
122+
}
117123
}

0 commit comments

Comments
 (0)