f0b52c6ab7
- Bump Docker SDK, downgrade otel deps for Go 1.24 compatibility - Fix duplicate i18n import in InstanceCard - Fix SvelteKit prerender/strict config for SPA build - Update Dockerfile with GOTOOLCHAIN=auto - Generate package-lock.json and go.sum WIP: still resolving Go 1.24 vs otel transitive dep versions
22 lines
456 B
TypeScript
22 lines
456 B
TypeScript
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;
|