UNPKG

decline-ts

Version:

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

12 lines (11 loc) 419 B
import { Parser } from '../../Parser'; import { AccumulatorHKT } from '../index'; export declare const URI = "Subcommand"; export declare type URI = typeof URI; export declare type Subcommand<A> = { readonly _tag: URI; readonly name: string; readonly action: Parser<A>; }; export declare const of: <A>(name: string, action: Parser<A>) => Subcommand<A>; export declare const subcommand: AccumulatorHKT<URI>;