// Type definitions for react-router-config 1.0 // Project: https://github.com/ReactTraining/react-router/tree/master/packages/react-router-config // Definitions by: François Nguyen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 import * as React from "react"; import { RouteComponentProps, match } from "react-router"; import { Location } from "history"; export interface RouteConfigComponentProps extends RouteComponentProps { route?: RouteConfig; } export interface RouteConfig { location?: Location; component?: React.ComponentType | {}>; path?: string; exact?: boolean; strict?: boolean; routes?: RouteConfig[]; } export interface MatchedRoute { route: RouteConfig; match: match; } export function matchRoutes(routes: RouteConfig[], pathname: string): Array>; export function renderRoutes(routes: RouteConfig[] | undefined, extraProps?: any): JSX.Element;