Skip to content

ui-router-server / ui-router-server / StateRoutes

Type Alias: StateRoutes<S> ​

ts
type StateRoutes<S> = { readonly [K in keyof S]: Pick<S[K], Extract<keyof S[K], keyof RouteDeclaration>> };

Defined in: state-routes.ts:21

The routes routesFromStates returns: each state narrowed to its RouteDeclaration fields.

Type Parameters ​

Type Parameter
S extends readonly RouteDeclaration[]