UNPKG

decimal.js-i18n

Version:
18 lines (17 loc) 612 B
/// <reference path="extend.d.ts" /> /*! * Copyright (c) 2022 Pedro José Batista, licensed under the MIT License. * See the LICENSE.md file in the project root for more information. */ const extend = decimalClass => { if (!decimalClass || typeof decimalClass.isDecimal !== "function") { throw new TypeError("Invalid Decimal argument."); } globalThis.__Decimal__Class__Global__ = decimalClass; require("./index"); delete globalThis.__Decimal__Class__Global__; return decimalClass; }; module.exports = extend; module.exports.default = extend; //# sourceMappingURL=extend.js.map