oo-redux-utils2
Version:
Object-oriented Redux utils
16 lines • 479 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class AbstractAction {
constructor(stateNamespace) {
this.stateNamespace = stateNamespace;
this.actionClassName = this.constructor.name;
}
performAction(action, currentState) {
return action.perform(currentState);
}
getStateNamespace() {
return this.stateNamespace;
}
}
exports.default = AbstractAction;
//# sourceMappingURL=AbstractAction.js.map