马宇豪
2024-08-14 e3172de7866b5d04e4d3a4d5eea400c7b3eea227
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>;