mobx-react-lite
Version:
Lightweight React bindings for MobX based on React 16.8 and Hooks
18 lines (17 loc) • 836 B
TypeScript
import { ReactElement } from "react";
interface IObserverProps {
children?(): ReactElement<any>;
render?(): ReactElement<any>;
}
declare function ObserverComponent({ children, render }: IObserverProps): ReactElement<any, string | ((props: any) => ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)> | null;
declare namespace ObserverComponent {
var propTypes: {
children: typeof ObserverPropsCheck;
render: typeof ObserverPropsCheck;
};
var displayName: string;
}
export { ObserverComponent as Observer };
declare function ObserverPropsCheck(props: {
[k: string]: any;
}, key: string, componentName: string, location: any, propFullName: string): Error | null;