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

# Type Alias: DelegateState\<K, Decls>

```ts
type DelegateState<K, Decls> = string extends Decls["name"] ? string : Extract<Decls, {
  delegate: K;
}>["name"];
```

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

The states that name delegate key `K`: `string` for an untyped router.

## Type Parameters

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