File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15397,10 +15397,11 @@ namespace ts {
15397
15397
links.resolvedSignatures = createMap();
15398
15398
}
15399
15399
const cacheKey = "" + getTypeId(valueType);
15400
- if (links.resolvedSignatures.get(cacheKey) && links.resolvedSignatures.get(cacheKey) !== resolvingSignaturesArray) {
15401
- signatures = links.resolvedSignatures.get(cacheKey);
15400
+ const cachedResolved = links.resolvedSignatures.get(cacheKey);
15401
+ if (cachedResolved && cachedResolved !== resolvingSignaturesArray) {
15402
+ signatures = cachedResolved;
15402
15403
}
15403
- else if (!links.resolvedSignatures.get(cacheKey) ) {
15404
+ else if (!cachedResolved ) {
15404
15405
links.resolvedSignatures.set(cacheKey, resolvingSignaturesArray);
15405
15406
links.resolvedSignatures.set(cacheKey, signatures = instantiateJsxSignatures(context, signatures));
15406
15407
}
You can’t perform that action at this time.
0 commit comments