sync.d.ts 477 B

123456789101112131415
  1. import * as fsScandir from '@nodelib/fs.scandir';
  2. import type { Entry } from '../types';
  3. import Reader from './reader';
  4. export default class SyncReader extends Reader {
  5. protected readonly _scandir: typeof fsScandir.scandirSync;
  6. private readonly _storage;
  7. private readonly _queue;
  8. read(): Entry[];
  9. private _pushToQueue;
  10. private _handleQueue;
  11. private _handleDirectory;
  12. private _handleError;
  13. private _handleEntry;
  14. private _pushToStorage;
  15. }