UNPKG

react-router-guard

Version:
20 lines (19 loc) 497 B
import React from 'react'; import { IConfig } from '@/models'; declare const defaultProps: { loading: boolean; history: null; }; declare type Props = { config: IConfig; history?: null | Object; loading?: boolean | React.ReactElement; } & typeof defaultProps; declare function RouterGuard(props: Props): JSX.Element; declare namespace RouterGuard { var defaultProps: { loading: boolean; history: null; }; } export default RouterGuard;