* True for a reference a React route makes: from a `route: :…` node, in * tsx or jsx, the language React gives its routes even in a `.ts` routes * file. Vue Router's and Angular's routes are never in either.
(ref: UnresolvedRef)
| 512 | * file. Vue Router's and Angular's routes are never in either. |
| 513 | */ |
| 514 | function isReactRouteRef(ref: UnresolvedRef): boolean { |
| 515 | return (ref.language === 'tsx' || ref.language === 'jsx') && ref.fromNodeId.startsWith(`route:${ref.filePath}:`); |
| 516 | } |
| 517 | |
| 518 | /** What a module can export as a component: a declaration, or a value holding one. */ |
| 519 | const EXPORTED_COMPONENT_KINDS = new Set(['function', 'component', 'class', 'constant', 'variable']); |
no outgoing calls
no test coverage detected