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

# Type Alias: DelegateKey\<Decls>

```ts
type DelegateKey<Decls> = string extends Decls["name"] ? string : Decls extends {
  delegate: infer K;
} ? K : never;
```

Defined in: fetch.ts:96

The delegate keys a router's states name: `string` for an untyped router.

## Type Parameters

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