UNPKG

decline-ts

Version:

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

7 lines (6 loc) 337 B
import { either } from 'fp-ts'; import * as D from 'io-ts/Decoder'; import { ValidatedNea } from './ValidatedNea'; export * from './Command'; export * from './Opts'; export declare const codecToDecode: <I, A>(codec: D.Decoder<I, A>) => (u: I) => either.Either<import("fp-ts/lib/ReadonlyNonEmptyArray").ReadonlyNonEmptyArray<string>, A>;