UNPKG

@aitianyu.cn/tianyu-store

Version:
54 lines 1.79 kB
"use strict"; /**@format */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ActionFactor = void 0; const ActionCreatorImpl_1 = require("./action/ActionCreatorImpl"); const VirtualActionlmpl_1 = require("./action/VirtualActionlmpl"); const ActionImpl_1 = require("./action/ActionImpl"); /** Tianyu Store Action Create Factor */ class ActionFactor { /** * To create a new action creator * * @template STATE type of state * @template PARAMETER_TYPE type of action parameter * * @returns return new action creator provider */ static makeActionCreator() { return (0, ActionCreatorImpl_1.actionCreatorImpl)(); } /** * To create a new virtual action creator * * @template STATE type of state * @template PARAMETER_TYPE type of action parameter * @template RETURN_TYPE type of action handler return value * * @returns return new action provider */ static makeVirtualAction() { return (0, VirtualActionlmpl_1.virtualActionImpl)(); } /** * To create an instance creation action creator * * @template STATE type of state * @template PARAMETER_TYPE type of action parameter * * @returns return new store instance creation action creator */ static makeCreateStoreAction() { return (0, ActionImpl_1.createStoreActionCreatorImpl)(); } /** * To create an instance destroy action creator * * @returns return new store instance destroy action creator */ static makeDestroyStoreAction() { return (0, ActionImpl_1.destroyStoreActionCreatorImpl)(); } } exports.ActionFactor = ActionFactor; //# sourceMappingURL=ActionFactor.js.map