mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Reuse type Logger
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -51,8 +51,8 @@ const logger = winston.createLogger({
|
||||
});
|
||||
|
||||
type Logger = ReturnType<typeof winston.createLogger>;
|
||||
type LoggerKeys = keyof typeof logger;
|
||||
type LoggerError = typeof logger.error;
|
||||
type LoggerKeys = keyof Logger;
|
||||
type LoggerError = Logger["error"];
|
||||
|
||||
/**
|
||||
* Type guard to ensure unknown is logger.error function
|
||||
|
||||
Reference in new issue
Block a user