马宇豪
2024-07-24 33413c6be7f338ba1ee92b3218e5c078364675dc
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>;