@lomray/react-mobx-manager
Version:
This package provides Mobx stores manager for react.
20 lines (19 loc) • 845 B
TypeScript
import { TAnyStore } from "./types.js";
/**
* Make store props exported for Manager.toJSON
* @see Manager.toJSON
*/
declare const makeExported: <T extends object>(store: T, props: { [P in Exclude<keyof T, "toString">]?: "observable" | "simple" | "excluded" | undefined; }, shouldExtend?: boolean) => void;
/**
* Check if store prop is observable exported
*/
declare const isPropObservableExported: (store: TAnyStore, prop: string) => boolean;
/**
* Check if store prop is simple exported
*/
declare const isPropSimpleExported: (store: TAnyStore, prop: string) => boolean;
/**
* Check if store prop is excluded from export
*/
declare const isPropExcludedFromExport: (store: TAnyStore, prop: string, withNotExported?: boolean) => boolean;
export { makeExported, isPropObservableExported, isPropSimpleExported, isPropExcludedFromExport };