---
url: >-
  https://lit-ui-router.dev/api/ui-router-server/index/type-aliases/ResponseState.md
---
[ui-router-server](../../index.md) / [ui-router-server](../index.md) / ResponseState

# Type Alias: ResponseState\<Decls>

```ts
type ResponseState<Decls> = string extends Decls["name"] ? string : Extract<Decls, {
  response: true;
}>["name"];
```

Defined in: [index.ts:276](https://github.com/simshanith/lit-ui-router/blob/4f9e1ea23844bc57088f9af022eec027c059192b/packages/ui-router-server/src/index.ts#L276)

The names of a router's response states: `string` for an untyped router.

## Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
|  `Decls` *extends* [`RouteDeclaration`](../../redirects/interfaces/RouteDeclaration.md) | [`RouteDeclaration`](../../redirects/interfaces/RouteDeclaration.md) |
