UNPKG

decline-ts

Version:

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

16 lines (15 loc) 502 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.arrayHasLength1 = exports.inspect = exports.todo = void 0; const todo = (...[]) => { // eslint-disable-next-line functional/no-throw-statement throw Error('Missing implementation'); }; exports.todo = todo; const inspect = (...label) => (a) => { console.log(...label, a); return a; }; exports.inspect = inspect; const arrayHasLength1 = (l) => l.length === 1; exports.arrayHasLength1 = arrayHasLength1;