@gaopeng123/utils.log
Version:
console print beautification
21 lines (20 loc) • 640 B
TypeScript
declare type LogType = 'success' | 'info' | 'log' | 'warn' | 'error';
/**
* 带标记的打印
*/
export declare const consoleTag: Record<LogType, (ns: string, msg: string, ...args: any[]) => void>;
/**
* 修改字符串颜色
*/
export declare const consoleStr: Record<LogType, (msg: string, ...args: any[]) => void>;
/**
* 修改打印背景
*/
export declare const consoleBg: Record<LogType, (msg: string, ...args: any[]) => void>;
/**
* 对外报漏修改入口
* @param obj
* @param myColors
*/
export declare const createConsoleFactory: (obj: any, myColors?: Record<LogType, string>) => void;
export {};