underrate's picture
Upload 2273 files
68cd5ab verified
Raw
History Blame Contribute Delete
236 Bytes
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>;