mirror of
https://github.com/dzeiocom/libs.git
synced 2025-06-14 19:59:17 +00:00
Changed typing file from .ts to .d.ts
Signed-off-by: Florian Bouillon <florian.bouillon@delta-wings.net>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import colors, { black, white, blue, yellow, green } from 'ansi-colors'
|
||||
import { theme, logType, ObjectArray } from './types'
|
||||
import { theme, logType, ObjectArray } from '../typing/types'
|
||||
|
||||
export default class Logger implements Console {
|
||||
|
||||
|
@ -6,9 +6,9 @@ import Logger from './Logger'
|
||||
* Init Logger in global context and add function to replace default console
|
||||
*/
|
||||
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
window.Logger = Logger
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
window.initConsole = function() {
|
||||
window.console = new Logger('Console')
|
||||
}
|
||||
|
@ -1,17 +0,0 @@
|
||||
/**
|
||||
* Object Array
|
||||
*/
|
||||
export interface ObjectArray<T = any> {
|
||||
[key: string]: T
|
||||
}
|
||||
|
||||
/**
|
||||
* used Internally,
|
||||
* the different types of logs
|
||||
*/
|
||||
export type logType = 'debug' | 'dir' | 'dirxml' | 'error' | 'info' | 'log' | 'trace' | 'warn'
|
||||
|
||||
/**
|
||||
* The possible themes
|
||||
*/
|
||||
export type theme = undefined | 'light' | 'dark'
|
Reference in New Issue
Block a user