redux-typed-kit
Version:
Powerful extensitions for building class-based Redux architecture powered by TypeScript.
18 lines • 481 B
JavaScript
var Action = /** @class */ (function () {
function Action() {
this.type = this.constructor.name;
}
Action.prototype.toPlainObject = function () {
var obj = {};
for (var x in this) {
if (x === "toJSON" || x === "constructor") {
continue;
}
obj[x] = this[x];
}
return obj;
};
return Action;
}());
export default Action;
//# sourceMappingURL=action.js.map