UNPKG

typedux

Version:

Slightly adjusted Redux (awesome by default) for TS

31 lines 1.13 kB
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports", "./MockConstants"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MockLeafState = void 0; var MockConstants_1 = require("./MockConstants"); /** * Mock leaf state, dumb test state with test props */ var MockLeafState = /** @class */ (function () { function MockLeafState(props) { if (props === void 0) { props = {}; } this.type = MockLeafState.Key; // type = MockLeafState // this.str1 = MockConstants_1.MockStateStr1; Object.assign(this, props); } MockLeafState.Key = MockConstants_1.MockKey; return MockLeafState; }()); exports.MockLeafState = MockLeafState; }); //# sourceMappingURL=MockLeafState.js.map