We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34cee16 commit 8f14e24Copy full SHA for 8f14e24
src/services/jsTyping.ts
@@ -161,7 +161,7 @@ namespace ts.JsTyping {
161
// Add the cached typing locations for inferred typings that are already installed
162
packageNameToTypingLocation.forEach((typing, name) => {
163
const registryEntry = typesRegistry.get(name);
164
- if (inferredTypings.has(name) && inferredTypings.get(name) === undefined && registryEntry !== undefined && isTypingUpToDate(typing, typesRegistry.get(name)!)) {
+ if (inferredTypings.has(name) && inferredTypings.get(name) === undefined && registryEntry !== undefined && isTypingUpToDate(typing, registryEntry!)) {
165
inferredTypings.set(name, typing.typingLocation);
166
}
167
});
0 commit comments