Project Files
src / node-globals.d.ts
declare module "crypto" {
export function randomUUID(): string;
}
declare module "fs" {
export function existsSync(path: string): boolean;
const fs: any;
export default fs;
}
declare module "fs/promises" {
const fsPromises: any;
export default fsPromises;
}
declare module "path" {
const path: any;
export default path;
}
declare var process: {
env: Record<string, string | undefined>;
exit(code?: number): never;
};