decline-ts
Version:
Composable command-line parser for TypeScript - a (partial) porting of Scala decline using fp-ts
14 lines (13 loc) • 421 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.pure = exports.of = exports.URI = void 0;
const fp_ts_1 = require("fp-ts");
exports.URI = 'Pure';
const of = (value) => ({ _tag: exports.URI, value });
exports.of = of;
exports.pure = {
URI: exports.URI,
parseOption: () => () => fp_ts_1.option.none,
parseSub: () => () => fp_ts_1.option.none,
result: fa => fa.value,
};