index.d.ts 609 B

1234567891011
  1. /// <reference types="node" />
  2. import fs from 'fs';
  3. export declare function readFile(path: string, encoding?: BufferEncoding): Promise<string>;
  4. export declare function readJsonFile<T>(path: string, encoding?: BufferEncoding): Promise<T>;
  5. export declare function readDir(dir: string): Promise<fs.Dirent[]>;
  6. export declare function readJsonDir<T extends object>(dir: string, filenameProperty?: string): Promise<T[]>;
  7. export declare function getSubdirNames(dir: string): Promise<string[]>;
  8. export declare function dotEnv(path: string): Promise<{
  9. [key: string]: string;
  10. }>;
  11. //# sourceMappingURL=index.d.ts.map