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.

28 lines
1005 B

4 years ago
  1. import glob = require("glob");
  2. /**
  3. * Performs an asynchronous glob search.
  4. * @param pattern Pattern or patterns to be matched.
  5. * @param cb The callback invoked when the search completes.
  6. */
  7. declare function G(pattern: string|string[], cb: (err: Error | null, matches: string[]) => void): void;
  8. /**
  9. * Performs an asynchronous glob search.
  10. * @param pattern Pattern or patterns to be matched.
  11. * @param options The glob options to use.
  12. * @param cb The callback invoked when the search completes.
  13. */
  14. declare function G(pattern: string|string[], options: glob.IOptions, cb: (err: Error | null, matches: string[]) => void): void;
  15. declare namespace G {
  16. /**
  17. * Performs an synchronous glob search.
  18. * @param pattern Pattern or patterns to be matched.
  19. * @param options The glob options to use.
  20. * @returns The file paths matched by the glob patterns.
  21. */
  22. function sync(pattern: string|string[], options?: glob.IOptions): string[];
  23. }
  24. export = G;