---
url: >-
  https://lit-ui-router.dev/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](https://github.com/simshanith/lit-ui-router/blob/1a559af0dc04d61d71ea4536fe2398902475b4ce/packages/ui-router-server/src/state-routes.ts#L21)

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)\[] |
