8a9d40fe2c24bcaa5835106c767e33eda43addb78b2570710af5a4a36598ecb46ec796bb2a365a19f240f247c9df5353f22da2ee10af30ac56def2e8e624ab 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /// <reference types="node" />
  2. import * as fsWalk from '@nodelib/fs.walk';
  3. export type ErrnoException = NodeJS.ErrnoException;
  4. export type Entry = fsWalk.Entry;
  5. export type EntryItem = string | Entry;
  6. export type Pattern = string;
  7. export type PatternRe = RegExp;
  8. export type PatternsGroup = Record<string, Pattern[]>;
  9. export type ReaderOptions = fsWalk.Options & {
  10. transform(entry: Entry): EntryItem;
  11. deepFilter: DeepFilterFunction;
  12. entryFilter: EntryFilterFunction;
  13. errorFilter: ErrorFilterFunction;
  14. fs: FileSystemAdapter;
  15. stats: boolean;
  16. };
  17. export type ErrorFilterFunction = fsWalk.ErrorFilterFunction;
  18. export type EntryFilterFunction = fsWalk.EntryFilterFunction;
  19. export type DeepFilterFunction = fsWalk.DeepFilterFunction;
  20. export type EntryTransformerFunction = (entry: Entry) => EntryItem;
  21. export type MicromatchOptions = {
  22. dot?: boolean;
  23. matchBase?: boolean;
  24. nobrace?: boolean;
  25. nocase?: boolean;
  26. noext?: boolean;
  27. noglobstar?: boolean;
  28. posix?: boolean;
  29. strictSlashes?: boolean;
  30. };
  31. export type FileSystemAdapter = fsWalk.FileSystemAdapter;