aijinhui
2023-11-08 d803609b8a2e43afcf5921f42f29ce7f6e68fb84
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>;