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

# Type Alias: DelegateHandlers\<Args, Decls>

```ts
type DelegateHandlers<Args, Decls> = { readonly [K in DelegateKey<Decls>]: DelegateHandler<Args> } & {
[key: string]: DelegateHandler<Args>;
};
```

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

The `delegates` option: a handler for every key a router's states name,
extra keys allowed. Every handler shares the adapter's one `Args`.

## Type Parameters

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