* Whether a reference is written where TypeScript reads a type: what a class * implements, or a type annotation's name — the extractor writes a * `references` ref only for a name in a type, and a route's reference to what * it renders comes from the router's own extraction.
(ref: UnresolvedRef)
| 2408 | * it renders comes from the router's own extraction. |
| 2409 | */ |
| 2410 | function namesType(ref: UnresolvedRef): boolean { |
| 2411 | return ref.referenceKind === 'implements' || |
| 2412 | (ref.referenceKind === 'references' && !ref.fromNodeId.startsWith('route:')); |
| 2413 | } |
| 2414 | |
| 2415 | /** |
| 2416 | * Resolve a component reference using name-based lookup |