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.

12 lines
518 B

2 years ago
  1. import * as fsStat from '@nodelib/fs.stat';
  2. import * as fsWalk from '@nodelib/fs.walk';
  3. import { Entry, Pattern, ReaderOptions } from '../types';
  4. import Reader from './reader';
  5. export default class ReaderSync extends Reader<Entry[]> {
  6. protected _walkSync: typeof fsWalk.walkSync;
  7. protected _statSync: typeof fsStat.statSync;
  8. dynamic(root: string, options: ReaderOptions): Entry[];
  9. static(patterns: Pattern[], options: ReaderOptions): Entry[];
  10. private _getEntry;
  11. private _getStat;
  12. }