UNPKG

decline-ts

Version:

Composable command-line parser for TypeScript - a (partial) porting of Scala decline using fp-ts

19 lines (18 loc) 544 B
export declare type Args = Args.Required | Args.Repeated | Args.Command; export declare namespace Args { type Required = { readonly _tag: 'Required'; readonly metavar: string; }; type Repeated = { readonly _tag: 'Repeated'; readonly metavar: string; }; type Command = { readonly _tag: 'Command'; readonly name: string; }; const required: (metavar: string) => Required; const repeated: (metavar: string) => Repeated; const command: (name: string) => Command; }