@nprindle/minewt
Version:
Minimal newtypes for TypeScript
29 lines (24 loc) • 781 B
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.minewt = {}));
})(this, (function (exports) { 'use strict';
function newtype() {
return x => x;
}
function unwrap(x) {
return x;
}
function liftN(f) {
return f;
}
function liftN2(f) {
return f;
}
exports.liftN = liftN;
exports.liftN2 = liftN2;
exports.newtype = newtype;
exports.unwrap = unwrap;
Object.defineProperty(exports, '__esModule', { value: true });
}));
//# sourceMappingURL=minewt.umd.js.map