diff --git a/src/LogLevel.ts b/src/LogLevel.ts index 9d006ee..e6bc3ac 100644 --- a/src/LogLevel.ts +++ b/src/LogLevel.ts @@ -8,7 +8,7 @@ interface MessageTemplate { utc?: boolean; } -interface LogLevelOpts { +export interface LogLevelOpts { /** * Name of the log level */ diff --git a/src/index.ts b/src/index.ts index 12051e6..b630265 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,9 +1,9 @@ /* eslint-disable */ -interface LogLevel { - level: number; -} +import type { LogLevelOpts } from "./LogLevel"; -function createLogger(levels: Record) { - return {} as Record void>; +function createLogger( + levels: Array +) { + return {} as Record, () => void>; }