mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 22:21:27 +08:00
IMPROVE typing of client-logger
This commit is contained in:
parent
66b7fe8401
commit
b906a2a1e1
@ -10,7 +10,7 @@ export const logger = {
|
||||
error: (message: any, ...rest: any[]): void => console.error(message, ...rest),
|
||||
};
|
||||
|
||||
export const pretty = (type: 'debug') => (...args: string[]) => {
|
||||
export const pretty = (type: keyof typeof logger) => (...args: string[]) => {
|
||||
const argArray = [];
|
||||
|
||||
if (args.length) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user