Skip to content

ui-router-server / ui-router-server / 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

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 ParameterDefault type
Decls extends RouteDeclarationRouteDeclaration