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

# Type Alias: StateRoutes\<S>

```ts
type StateRoutes<S> = { readonly [K in keyof S]: Pick<S[K], Extract<keyof S[K], keyof RouteDeclaration>> };
```

Defined in: state-routes.ts:21

The routes [routesFromStates](../functions/routesFromStates.md) returns: each state narrowed to its [RouteDeclaration](../../redirects/interfaces/RouteDeclaration.md) fields.

## Type Parameters

| Type Parameter |
| ------ |
|  `S` *extends* readonly [`RouteDeclaration`](../../redirects/interfaces/RouteDeclaration.md)\[] |
