tryless
Version:
Type-safe error handling for TypeScript without try-catch hell
11 lines • 432 B
TypeScript
/**
* Detects if the code is running in a Node.js environment.
* Checks for the existence of the `require` function.
*/
export declare const isNodeEnvironment: boolean;
/**
* The util.inspect function from Node.js, or undefined in browser environments.
* Loaded once when the module is imported.
*/
export declare const inspect: ((value: unknown, options?: object) => string) | undefined;
//# sourceMappingURL=runtime.d.ts.map