ui-router-server / fetch / DelegateContext
Type Alias: DelegateContext<K, Decls>
ts
type DelegateContext<K, Decls> = { [N in DelegateState<K, Decls>]: { delegate: K; mount: string; params: Readonly<DelegateParams<N>>; state: N; subpath: string } }[DelegateState<K, Decls>];Defined in: fetch.ts:116
The route a delegated request matched, read with delegateContext. A union over the states that name K, so checking state narrows params for a typed router; untyped it is one object type.
Type Parameters
| Type Parameter | Default type |
|---|---|
K extends string | string |
Decls extends RouteDeclaration | RouteDeclaration |