UNPKG

nsole

Version:

A drop-in isomorphic console.* replacement that's pretty, small, fast, and flexible

13 lines 1.72 kB
import type { ColorSpace, Definitions, DefinitionsD, DefinitionsDP, LogFn, LogLevel, PluginFn, PtagInstance } from './../types.ts'; /** * node ptag logger * @template M - custom log method names (otherwise ptag infers/handles automatically from def) * @param {string} [id='{}'] - (id)entifier tag/text with '{}' method placeholder * @param {L} [level=5] - log visibility threshold (-1=native, 0=silent, 1-5=verbosity) * @param {Definitions<M>} [definitions] - method definitions & styling overrides * @param {PluginFn<M>} [pluginFn] - log transformation/interception plugin * @param {ColorSpace} [colorSpace=3] - color space/support (0-3=depth, -neg=same + disables-cache) * @returns {PtagInstance} configured ptag (ProxyConstructor) instance */ export declare const ptag: <M extends string = never>(id?: null | string, level?: null | number, definitions?: null | Definitions<M>, pluginFn?: null | PluginFn<M>, colorSpace?: null | ColorSpace, i?: "_id", s?: "_def", l?: "_lvl", _G?: "PTAG_", _F?: "_FORCE", eobj?: any, lnoop?: LogFn, tof?: <T>(v: unknown, k?: string) => v is T, _gthis?: any, _getEnvDefVal?: LogFn, [[idG, idF], [fgG, fgF], [lvlG, lvlF], [pluginG, pluginF], [defsG, defsF]]?: [[string, string | null], [string | null | undefined, string | null | undefined], [LogLevel, LogLevel | null], [PluginFn<M> | null | undefined, PluginFn<M> | null | undefined], [Partial<DefinitionsD>, Partial<DefinitionsD | null>]], _defs?: DefinitionsD<M>, setStyle?: (value?: null | DefinitionsDP, dvalue?: DefinitionsD) => DefinitionsD, isForceRerun?: boolean, colorSpaceParam?: ColorSpace | null | undefined, gforceKey?: string, gconsole?: Console) => PtagInstance<M>; //# sourceMappingURL=_tmpl_.ptag.d.ts.map