yini-parser
Version:
Readable configuration without YAML foot-guns or JSON noise. The official Node.js parser for YINI config format — An INI-inspired configuration format with clear nesting, explicit types, and predictable parsing.
16 lines (15 loc) • 431 B
TypeScript
/**
* Error instance helper.
* @example
* ...
* } catch (err: unknown) {
* if (err instanceof Error) {
* console.error("Message:", err.message)
* console.error("Stack:", err.stack)
* } else {
* console.error("Unknown error:", err)
* console.error("Thrown value:", JSON.stringify(err))
* }
* }
*/
export declare const isError: (e: unknown) => e is Error;