UNPKG

vue-lazy-calc

Version:

A simple calculator with lazy evaluation featuer

30 lines 808 B
import Vue from "vue"; import LazyStream from "./stream"; import { LazyCalc } from "./simple"; var LazyBase = /** @class */ (function () { function LazyBase() { } // constructor() {} LazyBase.lazy = function (init) { if (init === void 0) { init = 0; } return new LazyCalc(init); }; LazyBase.stream = function (s) { return s ? new LazyStream().add(s) : new LazyStream(); }; return LazyBase; }()); export { LazyBase }; var instantce = { install: function (vue, options) { var alias = "$lzCalc"; vue.prototype[alias] = LazyBase; Object.defineProperty(Vue, "" + alias, { get: function () { return LazyBase; } }); } }; export default instantce; //# sourceMappingURL=main.js.map