A framework name heuristic's pick (see name-heuristic.ts), preferring these folders.
( ref: UnresolvedRef, kinds: Set<string>, preferredDirPatterns: string[], context: ResolutionContext, )
| 752 | |
| 753 | /** A framework name heuristic's pick (see name-heuristic.ts), preferring these folders. */ |
| 754 | function resolveByNameAndKind( |
| 755 | ref: UnresolvedRef, |
| 756 | kinds: Set<string>, |
| 757 | preferredDirPatterns: string[], |
| 758 | context: ResolutionContext, |
| 759 | ): string | null { |
| 760 | return pickByNameAndKind(ref, kinds, (f) => preferredDirPatterns.some((d) => f.includes(d)), context); |
| 761 | } |
| 762 |
no test coverage detected