UNPKG

dew-router

Version:

10 lines (9 loc) 526 B
import { ReactElement } from 'react'; import { StringOrStringArray } from './types'; export declare function Route({ name, lang, children, }: { name: string; lang: string; children: ((props: { params?: Record<string, StringOrStringArray>; }) => ReactElement) | ReactElement; }): ReactElement<any, string | ((props: any) => ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)> | null;