@@ -2340,7 +2340,7 @@ module.exports = __toCommonJS(server_exports);
2340
2340
2341
2341
// src/compiler/corePublic.ts
2342
2342
var versionMajorMinor = "5.4";
2343
- var version = "5.4.4 ";
2343
+ var version = "5.4.5 ";
2344
2344
var Comparison = /* @__PURE__ */ ((Comparison3) => {
2345
2345
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2346
2346
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -60254,13 +60254,13 @@ function createTypeChecker(host) {
60254
60254
}
60255
60255
function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) {
60256
60256
var _a, _b, _c;
60257
- let property = (( _a = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a.get(name)) || !skipObjectFunctionPropertyAugment ? (_b = type.propertyCache) == null ? void 0 : _b.get(name) : void 0 ;
60257
+ let property = skipObjectFunctionPropertyAugment ? ( _a = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a.get(name) : (_b = type.propertyCache) == null ? void 0 : _b.get(name);
60258
60258
if (!property) {
60259
60259
property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);
60260
60260
if (property) {
60261
60261
const properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = createSymbolTable()) : type.propertyCache || (type.propertyCache = createSymbolTable());
60262
60262
properties.set(name, property);
60263
- if (skipObjectFunctionPropertyAugment && !((_c = type.propertyCache) == null ? void 0 : _c.get(name))) {
60263
+ if (skipObjectFunctionPropertyAugment && !(getCheckFlags(property) & 48 /* Partial */) && !( (_c = type.propertyCache) == null ? void 0 : _c.get(name))) {
60264
60264
const properties2 = type.propertyCache || (type.propertyCache = createSymbolTable());
60265
60265
properties2.set(name, property);
60266
60266
}
@@ -160459,7 +160459,8 @@ function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, con
160459
160459
}
160460
160460
function symbolAppearsToBeTypeOnly(symbol) {
160461
160461
var _a;
160462
- return !(symbol.flags & 111551 /* Value */) && (!isInJSFile((_a = symbol.declarations) == null ? void 0 : _a[0]) || !!(symbol.flags & 788968 /* Type */));
160462
+ const flags = getCombinedLocalAndExportSymbolFlags(skipAlias(symbol, typeChecker));
160463
+ return !(flags & 111551 /* Value */) && (!isInJSFile((_a = symbol.declarations) == null ? void 0 : _a[0]) || !!(flags & 788968 /* Type */));
160463
160464
}
160464
160465
}
160465
160466
function getLabelCompletionAtPosition(node) {
0 commit comments