@remix-run/server-runtime
Version:
Server runtime for Remix
9 lines (8 loc) • 330 B
TypeScript
import type { Params } from "@remix-run/router";
import type { ServerRoute } from "./routes";
export interface RouteMatch<Route> {
params: Params;
pathname: string;
route: Route;
}
export declare function matchServerRoutes(routes: ServerRoute[], pathname: string, basename?: string): RouteMatch<ServerRoute>[] | null;