zhangjianrock@163.com
2024-01-29 0aed2059381eb175e3050c2ee155fe2c25ef88b8
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>;