---
url: >-
  https://lit-ui-router.dev/v1/reference/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:319

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) |
