Skip to content

warner

ts
export declare const warner: Warner;

A singleton instance of Warner with default settings. Exported for convenience, but you can create your own instances of Warner if you need custom configurations.

Example

ts
import { warner } from "warner";
warner.warn({ message: "This is a warning", code: "WARN001", metadata: { detail: "Additional info" } });
warner.finalize();