Skip to content

Commit

Permalink
fix(types): fix logger type
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowgate15 committed Aug 1, 2022
1 parent bbfa7d9 commit cea6b1e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion types/index.d.ts
Expand Up @@ -86,7 +86,7 @@ declare namespace Bree {
type JobOptions = Required<Pick<Job, 'name'>> & Partial<Omit<Job, 'name'>>;

interface BreeConfigs {
logger: Record<string, unknown> | boolean;
logger: BreeLogger | boolean;
root: string | boolean;
silenceRootCheckError: boolean;
doRootCheck: boolean;
Expand Down Expand Up @@ -114,4 +114,10 @@ declare namespace Bree {
type PluginFunc<T = unknown> = (options: T, c: typeof Bree) => void;

function extend<T = unknown>(plugin: PluginFunc<T>, options?: T): Bree;

interface BreeLogger {
info: (...args: any[]) => any;
warn: (...args: any[]) => any;
error: (...args: any[]) => any;
}
}

0 comments on commit cea6b1e

Please sign in to comment.