AngularTS
    Preparing search index...

    Type Alias RoutesOf<TTree, TParamTypes>

    RoutesOf: TTree extends readonly RouterTreeShape[]
        ? RouteMapFromForest<TTree, TParamTypes> extends infer TRouteMap
            ? { [TKey in Extract<keyof TRouteMap, string>]: TRouteMap[TKey] }
            : never
        : TTree extends RouterTreeShape
            ? RouteMapFromTree<TTree, TParamTypes>
            : never

    Derives the public route map for a literal router(...) tree.

    Type Parameters

    • TTree extends RouterTreeShape | readonly RouterTreeShape[]
    • TParamTypes extends Record<string, unknown> = Record<never, never>