UNPKG

@tanstack/react-router

Version:

Modern and scalable routing for React applications

3 lines (2 loc) 311 B
import { AsyncRouteComponent } from './route.js'; export declare function lazyRouteComponent<T extends Record<string, any>, TKey extends keyof T = 'default'>(importer: () => Promise<T>, exportName?: TKey, ssr?: () => boolean): T[TKey] extends (props: infer TProps) => any ? AsyncRouteComponent<TProps> : never;