io-ts-types
Version:
A collection of codecs and combinators for use with io-ts
13 lines (12 loc) • 430 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.readonlyNonEmptyArray = void 0;
var nonEmptyArray_1 = require("./nonEmptyArray");
/**
* @since 0.5.7
*/
function readonlyNonEmptyArray(codec, name) {
if (name === void 0) { name = "ReadonlyNonEmptyArray<" + codec.name + ">"; }
return nonEmptyArray_1.nonEmptyArray(codec, name);
}
exports.readonlyNonEmptyArray = readonlyNonEmptyArray;
;