This commit is contained in:
eewing
2026-02-17 14:10:16 -06:00
parent 2bca5834c5
commit cf73cd3b4c
11246 changed files with 1690552 additions and 0 deletions
+21
View 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;