MCPcopy Create free account
hub / github.com/TanStack/router / getResolvedRouteNodeVariableName

Function getResolvedRouteNodeVariableName

packages/router-generator/src/utils.ts:870–876  ·  view source on GitHub ↗
(
  routeNode: RouteNode,
)

Source from the content-addressed store, hash-verified

868 * Gets the final variable name for a route
869 */
870export const getResolvedRouteNodeVariableName = (
871 routeNode: RouteNode,
872): string => {
873 return routeNode.children?.length
874 ? `${routeNode.variableName}RouteWithChildren`
875 : `${routeNode.variableName}Route`
876}
877
878/**
879 * Infers the path for use by TS

Callers 2

buildRouteTreeMethod · 0.90
buildRouteTreeConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected