UNPKG

ts-import

Version:

Import (compile and cache on the fly) TypeScript files dynamically with ease.

5 lines (4 loc) 244 B
/// <reference types="node" resolution-mode="require"/> import * as fs from 'node:fs'; export declare const checkIfFileExists: (filePath: string) => Promise<fs.Stats>; export declare const checkIfFileExistsSync: (filePath: string) => fs.Stats;