feige
2024-10-13 3119fa3f7f7a1791d918d77d3e8315d762719ab7
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>;