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

# Type Alias: ExclusiveMarkers\<Decls>

```ts
type ExclusiveMarkers<Decls> = [Extract<Decls, {
  delegate: string;
  response: true;
}>] extends [never] ? unknown : {
  responseAndDelegate: Extract<Decls, {
     delegate: string;
     response: true;
  }>["name"];
};
```

Defined in: [index.ts:291](https://github.com/simshanith/lit-ui-router/blob/4f9e1ea23844bc57088f9af022eec027c059192b/packages/ui-router-server/src/index.ts#L291)

Rejects, at compile time, an `as const` row that is both a response state
and a delegate: it requires a property naming the offending states.

## Type Parameters

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