index.d.ts 522 B

12345678
  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. //# sourceMappingURL=index.d.ts.map