Skip to content

Commit 98cbe6c

Browse files
committed
fix: export necessary types
1 parent b43b999 commit 98cbe6c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { isNode } from 'detect-node-es'
33
import debug from 'debug'
44
import type { Simplify } from 'type-fest'
55

6-
type LoggerType = 'debug' | 'info' | 'warn' | 'error'
6+
export type LoggerType = 'debug' | 'info' | 'warn' | 'error'
77

88
interface LoggerConfig {
99
type: LoggerType
@@ -62,7 +62,7 @@ function createLoggerMethods(namespace: string) {
6262
}
6363

6464
type _Logger = Simplify<Record<LoggerType, LoggerMethod>>
65-
interface Logger extends _Logger {
65+
export interface Logger extends _Logger {
6666
(title: string): _Logger
6767
}
6868

@@ -98,8 +98,8 @@ function createLogger(namespace: string) {
9898
}
9999

100100
// Level definition
101-
type LoggerLevel = '1' | '2' | '3' | '4'
102-
type LoggerLevelTypes = Record<LoggerLevel, LoggerType[]>
101+
export type LoggerLevel = '1' | '2' | '3' | '4'
102+
export type LoggerLevelTypes = Record<LoggerLevel, LoggerType[]>
103103
export const loggerLevelTypes: LoggerLevelTypes = {
104104
1: ['error'],
105105
2: ['error', 'warn'],

0 commit comments

Comments
 (0)