UNPKG

@vitjs/runtime

Version:
21 lines (20 loc) 500 B
import type { ComponentType } from 'react'; export interface IRoute { path?: string; exact?: boolean; redirect?: string; component?: ComponentType<any>; routes?: IRoute[]; key?: any; strict?: boolean; sensitive?: boolean; wrappers?: any[]; [k: string]: any; } interface IOpts { routes: IRoute[]; pageInitialProps?: object; rootRoutes?: IRoute[]; } export default function renderRoutes(opts: IOpts, switchProps?: {}): JSX.Element | null; export {};