yz3456
2024-08-11 93d5248746860e9c19bedaab8761d480d0ce18b9
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>;