UNPKG

@lomray/react-mobx-manager

Version:
8 lines (7 loc) 362 B
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 };