UNPKG

docutils-ts

Version:

Port of the Python Docutils library to TypeScript

14 lines (13 loc) 342 B
export class NoOpLogger { constructor() { // Create a properly typed no-op function that matches LeveledLogMethod signature const f = ((message, ...meta) => { return this; }); this.debug = f; this.info = f; this.silly = f; this.error = f; this.warn = f; } }