forked from ard/ruoyi-api

liusuyi
2024-04-28 d1ebb26ab19f83f32c5314771a5381db6f1b2a6d
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>;