Interface PathnameMatch

A result returned by PathnameTemplate.match on a successful pathname match.

interface PathnameMatch {
    childPathname: string;
    params: undefined | Dict;
    pathname: string;
}

Properties

childPathname: string

A pathname that should be matched by a child route, beginning with a /.

params: undefined | Dict

Params extracted from the pathname, or undefined if pathname doesn't have params.

pathname: string

A pathname that was matched, beginning with a /.