You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract wildcard check into typesIncludesWildcard helper
- Added typesIncludesWildcard() function in moduleNameResolver.ts
- Updated all wildcard checks to use the helper function:
- checker.ts: getCannotFindNameDiagnosticForName
- programDiagnostics.ts: FileIncludeKind.AutomaticTypeDirectiveFile
- watch.ts: fileIncludeReasonToRelatedInformation
- resolutionCache.ts: updateTypeRootsWatch
- jsTyping.ts: discoverTypings
- Added imports in all consuming files
This centralizes the wildcard checking logic and makes the code more maintainable.
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
0 commit comments