‘liusuyi’
2023-07-19 e39f803f042f4ed3953df74d377b589806b056b6
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>;