Sha256: 4d025a04a95fb4bdc02a1f1846129587650a4b1c97851039bf21d8a067431e52
Contents?: true
Size: 979 Bytes
Versions: 13
Compression:
Stored size: 979 Bytes
Contents
/** * Use TraceLogger to figure out function calls inside * JS objects by wrapping an object with a TraceLogger * instance. * * Pretty-prints the call trace (using unicode box code) * when tracelogger.toString() is called. */ /** * Wrap an object by calling new TraceLogger(obj) * * If you're familiar with Python decorators, this * does roughly the same thing, adding pre/post * call hook logging calls so that you can see * what's going on. */ export declare class TraceLogger { messages: string[]; pad: string; padding: string; tick: number; constructor(obj?: {}); fin(fn: string, args: string | HTMLElement | number | boolean | false | (string | HTMLElement | number | boolean | false)[]): void; fout(fn: string, result: string | HTMLElement | number | boolean | false | (string | HTMLElement | number | boolean | false)[]): void; format(s: string, tick: number): string; log(...args: any[]): void; toString(): string; }
Version data entries
13 entries across 13 versions & 1 rubygems