linwenling
2023-08-09 c7d2fb7b04ea184df7c03a615ccda9bd172bb527
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>;