UNPKG

money-ts

Version:

TypeScript library for type-safe and lossless encoding and manipulation of world currencies and precious metals

7 lines 374 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var newtype_ts_1 = require("newtype-ts"); var io_ts_1 = require("io-ts"); var BigInteger_1 = require("./BigInteger"); exports.Natural = newtype_ts_1.unsafeCoerce(io_ts_1.refinement(BigInteger_1.BigInteger, function (bi) { return bi.isPositive(); }, 'Natural')); //# sourceMappingURL=Natural.js.map