vite-plugin-remix-routes
Version:
Use Remix routing in your Vite project
13 lines (10 loc) • 299 B
TypeScript
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 };