mirror of
https://github.com/daydreamer-json/ak-endfield-api-archive.git
synced 2026-05-07 22:23:42 +02:00
Hello
This commit is contained in:
15
src/types/LogLevels.ts
Normal file
15
src/types/LogLevels.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
const LOG_LEVELS = {
|
||||
0: 'trace',
|
||||
1: 'debug',
|
||||
2: 'info',
|
||||
3: 'warn',
|
||||
4: 'error',
|
||||
5: 'fatal',
|
||||
} as const;
|
||||
const LOG_LEVELS_NUM = [0, 1, 2, 3, 4, 5] as const;
|
||||
|
||||
type LogLevelNumber = keyof typeof LOG_LEVELS;
|
||||
type LogLevelString = (typeof LOG_LEVELS)[LogLevelNumber];
|
||||
|
||||
export type { LogLevelNumber, LogLevelString };
|
||||
export { LOG_LEVELS, LOG_LEVELS_NUM };
|
||||
Reference in New Issue
Block a user