Repository URL to install this package:
|
Version:
1.2.9 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = getDecorator;
var _mobx = require("xmobx/mobx");
var _exotic = require("../../exotic");
function getDecorator(func) {
return (storeOrConfig, config) => {
if ((0, _exotic.isObj)(storeOrConfig) === true && (0, _mobx.isObservable)(storeOrConfig) === false) {
return store => func(store, storeOrConfig);
}
return func(storeOrConfig, config);
};
}