feige
2025-03-11 8142b945508cd53a4dfaa739ad066389e8dfe214
1
2
3
type Promisable<T> = T | Promise<T>;
export type Callback = (directory: string, files: string[]) => Promisable<string | false | void>;
export default function (directory: string, callback: Callback): Promise<string | void>;