yz3456
2024-05-27 fd08342ac7b11db592ed04b2cbc51eac748d7535
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>;