utils/lib/esm/utils.d.ts

16 lines
536 B
TypeScript
Raw Normal View History

2024-01-27 21:29:33 +00:00
/// <reference types="node" />
export interface ErrorWithCode {
code: string;
}
export declare const convertCamelToUpperSnakeCase: (str: string) => string;
/**
* From: https://www.webmanajemen.com/2022/05/use-import-meta-cjs.html
*/
export declare const getDirname: () => {
__dirname: string;
__filename: string;
};
export declare const getTime: () => string;
export declare const log: (...msg: unknown[]) => void;
export declare const readJsonIfExists: (filePath: string | URL) => any;
//# sourceMappingURL=utils.d.ts.map