yz3456
2024-03-26 eaafe26cb6aa070b002037ede1c7de74b6b5600b
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>;