blob: 550699cf98e1c9b4de9b01128d072c1d8f6bd7e0 [file] [log] [blame]
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>;