@lomray/react-mobx-manager
Version:
This package provides Mobx stores manager for react.
8 lines (7 loc) • 362 B
TypeScript
import { FC } from 'react';
import { TMapStores, IWithStoreOptions } from "./types.js";
/**
* Make component observable and pass stores as props
*/
declare const withStores: <T extends Record<string, any>, TS extends TMapStores>(Component: FC<T>, stores: TS, { customContextId }?: IWithStoreOptions) => FC<Omit<T, keyof TS>>;
export { withStores as default };