# Interface RouteMatch<ParamKey, RouteObjectType>

interface RouteMatch<ParamKey, RouteObjectType> {
params: Params<ParamKey>;
pathname: string;
pathnameBase: string;
route: RouteObjectType;
}

#### Type Parameters

- ParamKey extends string = string
- RouteObjectType extends RouteObject = RouteObject

#### Hierarchy (view full)

- AgnosticRouteMatch<ParamKey, RouteObjectType>
  - RouteMatch
    - DataRouteMatch

- Defined in common/temp/node_modules/.pnpm/react-router@6.23.1_react@18.3.1/node_modules/react-router/dist/lib/context.d.ts:46

#####
Index

### Properties

params
pathname
pathnameBase
route

## Properties

### params

params: Params<ParamKey>

The names and values of dynamic parameters in the URL.

Inherited from AgnosticRouteMatch.params

- Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/utils.d.ts:301

### pathname

pathname: string

The portion of the URL pathname that was matched.

Inherited from AgnosticRouteMatch.pathname

- Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/utils.d.ts:305

### pathnameBase

pathnameBase: string

The portion of the URL pathname that was matched before child routes.

Inherited from AgnosticRouteMatch.pathnameBase

- Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/utils.d.ts:309

### route

route: RouteObjectType

The route object that was used to match.

Inherited from AgnosticRouteMatch.route

- Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/utils.d.ts:313