Skip to content

ui-router-server / matcher / CompiledMatcher

Interface: CompiledMatcher<M>

Defined in: url-matcher.ts:393

A compiled url pattern: inert data produced by urlMatcherFactory's compile and consumed by exec, format, and compare. Frozen — treat as immutable: compare memoizes per object identity, and the functions/regexps inside make it not structuredClone-able. Two data channels: compile's options.meta rides compile-time data on the matcher, and a consumer-owned identity-keyed WeakMap (frozen keys are fine) covers external or mutable association.

Type Parameters

Type ParameterDefault type
Mundefined

Properties

PropertyModifierTypeDescriptionDefined in
decodeParamsreadonlybooleanWhether exec percent-decodes captured values (the factory's decodeParams).url-matcher.ts:403
metareadonlyMCompile-time data riding the matcher (e.g. a build-time route id); the reference is frozen in, the object stays consumer-owned.url-matcher.ts:405
pathParamsreadonlyreadonly CompiledParam[]-url-matcher.ts:400
patternreadonlystringThe pattern that was compiled.url-matcher.ts:395
regexpreadonlyRegExpThe whole-path regexp the pattern compiled to.url-matcher.ts:397
searchParamsreadonlyreadonly CompiledParam[]-url-matcher.ts:401
segmentsreadonlyreadonly string[]The raw static segments between path params (length: path params + 1).url-matcher.ts:399