( routeNode: RouteNode, )
| 868 | * Gets the final variable name for a route |
| 869 | */ |
| 870 | export 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 |
no outgoing calls
no test coverage detected