小小儁爺
2025-11-19 4898649f875644baced2ccf15929e7e0dbf7851b
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>;