# Interface PathMatch<ParamKey>

A PathMatch contains info about how a PathPattern matched on a URL pathname.

interface PathMatch<ParamKey> {
params: Params<ParamKey>;
pathname: string;
pathnameBase: string;
pattern: PathPattern<string>;
}

#### Type Parameters

- ParamKey extends string = string

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

#####
Index

### Properties

params
pathname
pathnameBase
pattern

## Properties

### params

params: Params<ParamKey>

The names and values of dynamic parameters in the URL.

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

### pathname

pathname: string

The portion of the URL pathname that was matched.

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

### pathnameBase

pathnameBase: string

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

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

### pattern

pattern: PathPattern<string>

The pattern that was used to match.

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