Files
Iliyan Angelov c67067a2a4 Mail
2025-09-14 23:24:25 +03:00

23 lines
441 B
TypeScript

type Arrayable<T> = T[] | T;
export interface Suite {
/** The relative file path */
name: string;
/** The absolute file path */
file: string;
}
export interface Options {
cwd: string;
require: Arrayable<string>;
ignore: Arrayable<string | RegExp>;
}
export interface Argv {
dir: string;
suites: Suite[];
requires: boolean;
}
export function parse(dir?: string, pattern?: string|RegExp, opts?: Partial<Options>): Promise<Argv>;