commit
This commit is contained in:
parent
be4fd23bcf
commit
0bd53741af
728 changed files with 86573 additions and 0 deletions
21
node_modules/mri/index.d.ts
generated
vendored
Normal file
21
node_modules/mri/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
type Dict<T> = Record<string, T>;
|
||||
type Arrayable<T> = T | T[];
|
||||
type Default = Dict<any>;
|
||||
|
||||
declare function mri<T=Default>(args?: string[], options?: mri.Options): mri.Argv<T>;
|
||||
|
||||
declare namespace mri {
|
||||
export interface Options {
|
||||
boolean?: Arrayable<string>;
|
||||
string?: Arrayable<string>;
|
||||
alias?: Dict<Arrayable<string>>;
|
||||
default?: Dict<any>;
|
||||
unknown?(flag: string): void;
|
||||
}
|
||||
|
||||
export type Argv<T=Default> = T & {
|
||||
_: string[];
|
||||
}
|
||||
}
|
||||
|
||||
export = mri;
|
Loading…
Add table
Add a link
Reference in a new issue