UNPKG

react-router-guard

Version:
17 lines (16 loc) 532 B
/// <reference types="react" /> import PropTypes from 'prop-types'; declare function RouteRedirect(props: any): JSX.Element; declare namespace RouteRedirect { var propTypes: { path: PropTypes.Validator<string | (string | null | undefined)[]>; redirect: PropTypes.Validator<string>; exact: PropTypes.Requireable<boolean>; strict: PropTypes.Requireable<boolean>; }; var defaultProps: { exact: boolean; strict: boolean; }; } export default RouteRedirect;