decline-ts
Version:
Composable command-line parser for TypeScript - a (partial) porting of Scala decline using fp-ts
11 lines (10 loc) • 443 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Options = void 0;
var Options;
(function (Options) {
Options.required = (text) => ({ _tag: 'Required', text });
Options.repeated = (text) => ({ _tag: 'Repeated', text });
Options.isRequired = (opts) => opts._tag === 'Required';
Options.isRepeated = (opts) => opts._tag === 'Repeated';
})(Options = exports.Options || (exports.Options = {}));