mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-17 07:52:40 +01:00
fd22b0bf58
V2 (Laravel re-make)
16 lines
477 B
TypeScript
16 lines
477 B
TypeScript
import * as fsScandir from '@nodelib/fs.scandir';
|
|
import type { Entry } from '../types';
|
|
import Reader from './reader';
|
|
export default class SyncReader extends Reader {
|
|
protected readonly _scandir: typeof fsScandir.scandirSync;
|
|
private readonly _storage;
|
|
private readonly _queue;
|
|
read(): Entry[];
|
|
private _pushToQueue;
|
|
private _handleQueue;
|
|
private _handleDirectory;
|
|
private _handleError;
|
|
private _handleEntry;
|
|
private _pushToStorage;
|
|
}
|