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.

15 lines
301 B

1 month ago
  1. type Promisable<T> = T | Promise<T>;
  2. declare namespace escalade {
  3. export type Callback = (
  4. directory: string,
  5. files: string[],
  6. ) => Promisable<string | false | void>;
  7. }
  8. declare function escalade(
  9. directory: string,
  10. callback: escalade.Callback,
  11. ): Promise<string | void>;
  12. export = escalade;