UNPKG

@remix-run/server-runtime

Version:
9 lines (8 loc) 330 B
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;