You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
483 B

2 years ago
  1. import * as fsWalk from '@nodelib/fs.walk';
  2. import { Entry, ReaderOptions, Pattern } from '../types';
  3. import Reader from './reader';
  4. import ReaderStream from './stream';
  5. export default class ReaderAsync extends Reader<Promise<Entry[]>> {
  6. protected _walkAsync: typeof fsWalk.walk;
  7. protected _readerStream: ReaderStream;
  8. dynamic(root: string, options: ReaderOptions): Promise<Entry[]>;
  9. static(patterns: Pattern[], options: ReaderOptions): Promise<Entry[]>;
  10. }