mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 19:59:02 +08:00
28 lines
693 B
TypeScript
28 lines
693 B
TypeScript
// Type definitions for minimist-options 3.0
|
|
// Project: https://github.com/vadimdemedes/minimist-options
|
|
// Definitions by: Ika <https://github.com/ikatyang>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.1
|
|
|
|
import * as minimist from 'minimist';
|
|
|
|
declare function build(options?: build.Options): minimist.Opts;
|
|
|
|
declare namespace build {
|
|
type Type = 'string' | 'boolean';
|
|
|
|
interface Option {
|
|
type?: Type;
|
|
alias?: string | string[];
|
|
default?: any;
|
|
}
|
|
|
|
type Options = {
|
|
[key: string]: Type | Option;
|
|
} & {
|
|
[K in 'stopEarly' | 'unknown' | '--']?: minimist.Opts[K];
|
|
};
|
|
}
|
|
|
|
export = build;
|