UNPKG

441 BTypeScriptView Raw
1type Arrayable<T> = T[] | T;
2
3export interface Suite {
4 /** The relative file path */
5 name: string;
6 /** The absolute file path */
7 file: string;
8}
9
10export interface Options {
11 cwd: string;
12 require: Arrayable<string>;
13 ignore: Arrayable<string | RegExp>;
14}
15
16export interface Argv {
17 dir: string;
18 suites: Suite[];
19 requires: boolean;
20}
21
22export function parse(dir?: string, pattern?: string|RegExp, opts?: Partial<Options>): Promise<Argv>;