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

# Interface: Replace

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

An input rewrite applied before typing (absent/empty/squash handling).

## Properties

| Property | Type | Description | Defined in |
| ------ | ------ | ------ | ------ |
|  `from` | `unknown` | The raw input value to rewrite. | [url-matcher.ts:272](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/url-matcher.ts#L272) |
|  `to` | `unknown` | What it becomes (`undefined` triggers the param's default). | [url-matcher.ts:274](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/url-matcher.ts#L274) |
