index.d.ts 301 B

123456789101112131415
  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;