index.d.ts 224 B

1234
  1. type Promisable<T> = T | Promise<T>;
  2. export type Callback = (directory: string, files: string[]) => Promisable<string | false | void>;
  3. export default function (directory: string, callback: Callback): Promise<string | void>;