UNPKG

vite-plugin-remix-routes

Version:
13 lines (10 loc) 299 B
import { ComponentType } from 'react'; import { RouteObject } from 'react-router-dom'; declare type Route = RouteObject & { importPromise?: () => Promise<ComponentType>; }; interface Props { routes: Route[]; } declare function EagerLoader({ routes }: Props): null; export { EagerLoader };