UNPKG

mobx-persist-store

Version:
10 lines (9 loc) 451 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPersistedStore = void 0; const PersistStoreMap_1 = require("./PersistStoreMap"); const getPersistedStore = async (target) => { var _a, _b; return (_b = (_a = PersistStoreMap_1.PersistStoreMap.get(target)) === null || _a === void 0 ? void 0 : _a.getPersistedStore()) !== null && _b !== void 0 ? _b : null; }; exports.getPersistedStore = getPersistedStore;