UNPKG

next

Version:

The React Framework

9 lines (8 loc) 275 B
import type { RouteRegex } from './route-regex'; export interface RouteMatch { (pathname: string | null | undefined): false | Params; } export interface Params { [param: string]: any; } export declare function getRouteMatcher({ re, groups }: RouteRegex): RouteMatch;