马宇豪
2024-07-16 518fe95206669eee05488d364c8d3528eaff604f
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>;