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

# Type Alias: PageState\<Decls>

```ts
type PageState<Decls> = Decls extends {
  delegate: string;
} ? never : Decls extends {
  url: string;
} ? Decls : never;
```

Defined in: [fetch.ts:178](https://github.com/simshanith/lit-ui-router/blob/3ab90929a8d23dda96e259d7396a274c5b05398e/packages/ui-router-server/src/fetch.ts#L178)

The states of `Decls` that can answer with the shell: a url and no delegate.

## Type Parameters

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