UNPKG

usedjs

Version:

used.js 是一个轻量级小巧的可运行在浏览器中的 JavaScript 函数库

22 lines (21 loc) 781 B
/** * 根据 https://developer.mozilla.org/zh-CN/docs/Web/API/Console 提供相应的等级日志 * 前四个类型属于消息输出,主要针对文本 String * DIR 针对 DOM * TABLE 针对 Object | Array */ export declare enum LoggerType { LOG = "log", INFO = "info", WARNING = "warning", ERROR = "error", DIR = "dir", TABLE = "table" } export declare const dir: (el: Element) => void; export declare const info: (message: any) => void; export declare const warning: (message: any) => void; export declare const error: (message: any) => void; export declare const table: (message: any, options?: string[] | undefined) => void; declare const logger: (message: any, type?: LoggerType, options?: string[] | undefined) => void; export default logger;