---
url: >-
  https://lit-ui-router.dev/reference/ui-router-server/matcher/interfaces/CompiledParam.md
---
[ui-router-server](../../index.md) / [matcher](../index.md) / CompiledParam

# Interface: CompiledParam

Defined in: [url-matcher.ts:296](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/url-matcher.ts#L296)

A compiled parameter: inert data for one placeholder of a pattern.

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
|  `defaultValue` | `readonly` | `unknown` | The static default value, applied directly (see the module docblock). | [url-matcher.ts:310](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/url-matcher.ts#L310) |
|  `id` | `readonly` | `string` | The placeholder's name, as written in the pattern. | [url-matcher.ts:298](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/url-matcher.ts#L298) |
|  `isOptional` | `readonly` | `boolean` | Whether the param may be absent — it has a static default, or it is a search param. | [url-matcher.ts:304](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/url-matcher.ts#L304) |
|  `isSearch` | `readonly` | `boolean` | Whether the placeholder came from the pattern's search part (`?flag`). | [url-matcher.ts:302](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/url-matcher.ts#L302) |
|  `replace` | `readonly` | readonly [`Replace`](Replace.md)\[] | Input rewrites applied before typing (see [Replace](Replace.md)). | [url-matcher.ts:308](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/url-matcher.ts#L308) |
|  `squash` | `readonly` | `string` | `boolean` | The url squash policy: false, true, or the placeholder string. | [url-matcher.ts:306](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/url-matcher.ts#L306) |
|  `type` | `readonly` | [`ParamType`](ParamType.md) | The [ParamType](ParamType.md) that decodes, encodes and validates its values. | [url-matcher.ts:300](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/url-matcher.ts#L300) |
