yz3456
2024-05-10 76f84021c817dbec24bde29c903a1ee8cff6d042
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>;