mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 05:19:30 +08:00
22 lines
441 B
Text
22 lines
441 B
Text
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>;
|