UNPKG

react-router-magic

Version:
24 lines (23 loc) 826 B
/// <reference types="react" /> import { Component, ValidationMap } from 'react'; import { History, Location } from 'history'; import { Store, RouterStoreState } from './Store'; export declare type RouterProviderProps = { history: History; location: Location; }; export declare type RouterProviderChildContext = { router: { history: History; }; routerStore: Store<RouterStoreState>; }; export declare class RouterProvider extends Component<RouterProviderProps, {}> { static displayName: string; static childContextTypes: ValidationMap<any>; private routerStore; constructor(props: RouterProviderProps); UNSAFE_componentWillReceiveProps(nextProps: RouterProviderProps): void; getChildContext(): RouterProviderChildContext; render(): JSX.Element; }