typescript 5.0.0-dev.20221230 → 5.0.0-dev.20221231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +6 -7
- package/lib/tsserver.js +6 -7
- package/lib/tsserverlibrary.js +6 -7
- package/lib/typescript.js +6 -7
- package/lib/typingsInstaller.js +1 -2
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -23,7 +23,7 @@ var __export = (target, all) => {
|
|
|
23
23
|
|
|
24
24
|
// src/compiler/corePublic.ts
|
|
25
25
|
var versionMajorMinor = "5.0";
|
|
26
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
26
|
+
var version = `${versionMajorMinor}.0-dev.20221231`;
|
|
27
27
|
|
|
28
28
|
// src/compiler/core.ts
|
|
29
29
|
var emptyArray = [];
|
|
@@ -3416,7 +3416,6 @@ var NodeFlags = /* @__PURE__ */ ((NodeFlags3) => {
|
|
|
3416
3416
|
NodeFlags3[NodeFlags3["JsonFile"] = 67108864] = "JsonFile";
|
|
3417
3417
|
NodeFlags3[NodeFlags3["TypeCached"] = 134217728] = "TypeCached";
|
|
3418
3418
|
NodeFlags3[NodeFlags3["Deprecated"] = 268435456] = "Deprecated";
|
|
3419
|
-
NodeFlags3[NodeFlags3["ConditionalTypeContext"] = 536870912] = "ConditionalTypeContext";
|
|
3420
3419
|
NodeFlags3[NodeFlags3["BlockScoped"] = 3] = "BlockScoped";
|
|
3421
3420
|
NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 768] = "ReachabilityCheckFlags";
|
|
3422
3421
|
NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 2816] = "ReachabilityAndEmitFlags";
|
|
@@ -40174,7 +40173,7 @@ function createTypeChecker(host) {
|
|
|
40174
40173
|
if (usage.kind === 274 /* ExportAssignment */ && usage.isExportEquals) {
|
|
40175
40174
|
return true;
|
|
40176
40175
|
}
|
|
40177
|
-
if (!!(usage.flags & 8388608 /* JSDoc */) || isInTypeQuery(usage) ||
|
|
40176
|
+
if (!!(usage.flags & 8388608 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) {
|
|
40178
40177
|
return true;
|
|
40179
40178
|
}
|
|
40180
40179
|
if (isUsedInFunctionOrInstanceProperty(usage, declaration)) {
|
|
@@ -40185,9 +40184,6 @@ function createTypeChecker(host) {
|
|
|
40185
40184
|
}
|
|
40186
40185
|
}
|
|
40187
40186
|
return false;
|
|
40188
|
-
function usageInTypeDeclaration() {
|
|
40189
|
-
return !!findAncestor(usage, (node) => isInterfaceDeclaration(node) || isTypeAliasDeclaration(node));
|
|
40190
|
-
}
|
|
40191
40187
|
function isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration2, usage2) {
|
|
40192
40188
|
switch (declaration2.parent.parent.kind) {
|
|
40193
40189
|
case 240 /* VariableStatement */:
|
|
@@ -56894,6 +56890,9 @@ function createTypeChecker(host) {
|
|
|
56894
56890
|
(n) => n.kind === 183 /* TypeQuery */ ? true : n.kind === 79 /* Identifier */ || n.kind === 163 /* QualifiedName */ ? false : "quit"
|
|
56895
56891
|
);
|
|
56896
56892
|
}
|
|
56893
|
+
function isInAmbientOrTypeNode(node) {
|
|
56894
|
+
return !!(node.flags & 16777216 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeLiteralNode(n)));
|
|
56895
|
+
}
|
|
56897
56896
|
function getFlowCacheKey(node, declaredType, initialType, flowContainer) {
|
|
56898
56897
|
switch (node.kind) {
|
|
56899
56898
|
case 79 /* Identifier */:
|
|
@@ -58876,7 +58875,7 @@ function createTypeChecker(host) {
|
|
|
58876
58875
|
while (flowContainer !== declarationContainer && (flowContainer.kind === 215 /* FunctionExpression */ || flowContainer.kind === 216 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) {
|
|
58877
58876
|
flowContainer = getControlFlowContainer(flowContainer);
|
|
58878
58877
|
}
|
|
58879
|
-
const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || node.parent.kind === 278 /* ExportSpecifier */) || node.parent.kind === 232 /* NonNullExpression */ || declaration.kind === 257 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */;
|
|
58878
|
+
const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 278 /* ExportSpecifier */) || node.parent.kind === 232 /* NonNullExpression */ || declaration.kind === 257 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */;
|
|
58880
58879
|
const initialType = assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : type === autoType || type === autoArrayType ? undefinedType : getOptionalType(type);
|
|
58881
58880
|
const flowType = getFlowTypeOfReference(node, type, initialType, flowContainer);
|
|
58882
58881
|
if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) {
|
package/lib/tsserver.js
CHANGED
|
@@ -2670,7 +2670,7 @@ __export(ts_server_exports3, {
|
|
|
2670
2670
|
|
|
2671
2671
|
// src/compiler/corePublic.ts
|
|
2672
2672
|
var versionMajorMinor = "5.0";
|
|
2673
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2673
|
+
var version = `${versionMajorMinor}.0-dev.20221231`;
|
|
2674
2674
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2675
2675
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2676
2676
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -6576,7 +6576,6 @@ var NodeFlags = /* @__PURE__ */ ((NodeFlags4) => {
|
|
|
6576
6576
|
NodeFlags4[NodeFlags4["JsonFile"] = 67108864] = "JsonFile";
|
|
6577
6577
|
NodeFlags4[NodeFlags4["TypeCached"] = 134217728] = "TypeCached";
|
|
6578
6578
|
NodeFlags4[NodeFlags4["Deprecated"] = 268435456] = "Deprecated";
|
|
6579
|
-
NodeFlags4[NodeFlags4["ConditionalTypeContext"] = 536870912] = "ConditionalTypeContext";
|
|
6580
6579
|
NodeFlags4[NodeFlags4["BlockScoped"] = 3] = "BlockScoped";
|
|
6581
6580
|
NodeFlags4[NodeFlags4["ReachabilityCheckFlags"] = 768] = "ReachabilityCheckFlags";
|
|
6582
6581
|
NodeFlags4[NodeFlags4["ReachabilityAndEmitFlags"] = 2816] = "ReachabilityAndEmitFlags";
|
|
@@ -45150,7 +45149,7 @@ function createTypeChecker(host) {
|
|
|
45150
45149
|
if (usage.kind === 274 /* ExportAssignment */ && usage.isExportEquals) {
|
|
45151
45150
|
return true;
|
|
45152
45151
|
}
|
|
45153
|
-
if (!!(usage.flags & 8388608 /* JSDoc */) || isInTypeQuery(usage) ||
|
|
45152
|
+
if (!!(usage.flags & 8388608 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) {
|
|
45154
45153
|
return true;
|
|
45155
45154
|
}
|
|
45156
45155
|
if (isUsedInFunctionOrInstanceProperty(usage, declaration)) {
|
|
@@ -45161,9 +45160,6 @@ function createTypeChecker(host) {
|
|
|
45161
45160
|
}
|
|
45162
45161
|
}
|
|
45163
45162
|
return false;
|
|
45164
|
-
function usageInTypeDeclaration() {
|
|
45165
|
-
return !!findAncestor(usage, (node) => isInterfaceDeclaration(node) || isTypeAliasDeclaration(node));
|
|
45166
|
-
}
|
|
45167
45163
|
function isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration2, usage2) {
|
|
45168
45164
|
switch (declaration2.parent.parent.kind) {
|
|
45169
45165
|
case 240 /* VariableStatement */:
|
|
@@ -61870,6 +61866,9 @@ function createTypeChecker(host) {
|
|
|
61870
61866
|
(n) => n.kind === 183 /* TypeQuery */ ? true : n.kind === 79 /* Identifier */ || n.kind === 163 /* QualifiedName */ ? false : "quit"
|
|
61871
61867
|
);
|
|
61872
61868
|
}
|
|
61869
|
+
function isInAmbientOrTypeNode(node) {
|
|
61870
|
+
return !!(node.flags & 16777216 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeLiteralNode(n)));
|
|
61871
|
+
}
|
|
61873
61872
|
function getFlowCacheKey(node, declaredType, initialType, flowContainer) {
|
|
61874
61873
|
switch (node.kind) {
|
|
61875
61874
|
case 79 /* Identifier */:
|
|
@@ -63852,7 +63851,7 @@ function createTypeChecker(host) {
|
|
|
63852
63851
|
while (flowContainer !== declarationContainer && (flowContainer.kind === 215 /* FunctionExpression */ || flowContainer.kind === 216 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) {
|
|
63853
63852
|
flowContainer = getControlFlowContainer(flowContainer);
|
|
63854
63853
|
}
|
|
63855
|
-
const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || node.parent.kind === 278 /* ExportSpecifier */) || node.parent.kind === 232 /* NonNullExpression */ || declaration.kind === 257 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */;
|
|
63854
|
+
const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 278 /* ExportSpecifier */) || node.parent.kind === 232 /* NonNullExpression */ || declaration.kind === 257 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */;
|
|
63856
63855
|
const initialType = assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : type === autoType || type === autoArrayType ? undefinedType : getOptionalType(type);
|
|
63857
63856
|
const flowType = getFlowTypeOfReference(node, type, initialType, flowContainer);
|
|
63858
63857
|
if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) {
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -42,7 +42,7 @@ var ts = (() => {
|
|
|
42
42
|
"src/compiler/corePublic.ts"() {
|
|
43
43
|
"use strict";
|
|
44
44
|
versionMajorMinor = "5.0";
|
|
45
|
-
version = `${versionMajorMinor}.0-dev.
|
|
45
|
+
version = `${versionMajorMinor}.0-dev.20221231`;
|
|
46
46
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
47
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
48
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -4006,7 +4006,6 @@ ${lanes.join("\n")}
|
|
|
4006
4006
|
NodeFlags4[NodeFlags4["JsonFile"] = 67108864] = "JsonFile";
|
|
4007
4007
|
NodeFlags4[NodeFlags4["TypeCached"] = 134217728] = "TypeCached";
|
|
4008
4008
|
NodeFlags4[NodeFlags4["Deprecated"] = 268435456] = "Deprecated";
|
|
4009
|
-
NodeFlags4[NodeFlags4["ConditionalTypeContext"] = 536870912] = "ConditionalTypeContext";
|
|
4010
4009
|
NodeFlags4[NodeFlags4["BlockScoped"] = 3] = "BlockScoped";
|
|
4011
4010
|
NodeFlags4[NodeFlags4["ReachabilityCheckFlags"] = 768] = "ReachabilityCheckFlags";
|
|
4012
4011
|
NodeFlags4[NodeFlags4["ReachabilityAndEmitFlags"] = 2816] = "ReachabilityAndEmitFlags";
|
|
@@ -42584,7 +42583,7 @@ ${lanes.join("\n")}
|
|
|
42584
42583
|
if (usage.kind === 274 /* ExportAssignment */ && usage.isExportEquals) {
|
|
42585
42584
|
return true;
|
|
42586
42585
|
}
|
|
42587
|
-
if (!!(usage.flags & 8388608 /* JSDoc */) || isInTypeQuery(usage) ||
|
|
42586
|
+
if (!!(usage.flags & 8388608 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) {
|
|
42588
42587
|
return true;
|
|
42589
42588
|
}
|
|
42590
42589
|
if (isUsedInFunctionOrInstanceProperty(usage, declaration)) {
|
|
@@ -42595,9 +42594,6 @@ ${lanes.join("\n")}
|
|
|
42595
42594
|
}
|
|
42596
42595
|
}
|
|
42597
42596
|
return false;
|
|
42598
|
-
function usageInTypeDeclaration() {
|
|
42599
|
-
return !!findAncestor(usage, (node) => isInterfaceDeclaration(node) || isTypeAliasDeclaration(node));
|
|
42600
|
-
}
|
|
42601
42597
|
function isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration2, usage2) {
|
|
42602
42598
|
switch (declaration2.parent.parent.kind) {
|
|
42603
42599
|
case 240 /* VariableStatement */:
|
|
@@ -59304,6 +59300,9 @@ ${lanes.join("\n")}
|
|
|
59304
59300
|
(n) => n.kind === 183 /* TypeQuery */ ? true : n.kind === 79 /* Identifier */ || n.kind === 163 /* QualifiedName */ ? false : "quit"
|
|
59305
59301
|
);
|
|
59306
59302
|
}
|
|
59303
|
+
function isInAmbientOrTypeNode(node) {
|
|
59304
|
+
return !!(node.flags & 16777216 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeLiteralNode(n)));
|
|
59305
|
+
}
|
|
59307
59306
|
function getFlowCacheKey(node, declaredType, initialType, flowContainer) {
|
|
59308
59307
|
switch (node.kind) {
|
|
59309
59308
|
case 79 /* Identifier */:
|
|
@@ -61286,7 +61285,7 @@ ${lanes.join("\n")}
|
|
|
61286
61285
|
while (flowContainer !== declarationContainer && (flowContainer.kind === 215 /* FunctionExpression */ || flowContainer.kind === 216 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) {
|
|
61287
61286
|
flowContainer = getControlFlowContainer(flowContainer);
|
|
61288
61287
|
}
|
|
61289
|
-
const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || node.parent.kind === 278 /* ExportSpecifier */) || node.parent.kind === 232 /* NonNullExpression */ || declaration.kind === 257 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */;
|
|
61288
|
+
const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 278 /* ExportSpecifier */) || node.parent.kind === 232 /* NonNullExpression */ || declaration.kind === 257 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */;
|
|
61290
61289
|
const initialType = assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : type === autoType || type === autoArrayType ? undefinedType : getOptionalType(type);
|
|
61291
61290
|
const flowType = getFlowTypeOfReference(node, type, initialType, flowContainer);
|
|
61292
61291
|
if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) {
|
package/lib/typescript.js
CHANGED
|
@@ -42,7 +42,7 @@ var ts = (() => {
|
|
|
42
42
|
"src/compiler/corePublic.ts"() {
|
|
43
43
|
"use strict";
|
|
44
44
|
versionMajorMinor = "5.0";
|
|
45
|
-
version = `${versionMajorMinor}.0-dev.
|
|
45
|
+
version = `${versionMajorMinor}.0-dev.20221231`;
|
|
46
46
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
47
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
48
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -4006,7 +4006,6 @@ ${lanes.join("\n")}
|
|
|
4006
4006
|
NodeFlags4[NodeFlags4["JsonFile"] = 67108864] = "JsonFile";
|
|
4007
4007
|
NodeFlags4[NodeFlags4["TypeCached"] = 134217728] = "TypeCached";
|
|
4008
4008
|
NodeFlags4[NodeFlags4["Deprecated"] = 268435456] = "Deprecated";
|
|
4009
|
-
NodeFlags4[NodeFlags4["ConditionalTypeContext"] = 536870912] = "ConditionalTypeContext";
|
|
4010
4009
|
NodeFlags4[NodeFlags4["BlockScoped"] = 3] = "BlockScoped";
|
|
4011
4010
|
NodeFlags4[NodeFlags4["ReachabilityCheckFlags"] = 768] = "ReachabilityCheckFlags";
|
|
4012
4011
|
NodeFlags4[NodeFlags4["ReachabilityAndEmitFlags"] = 2816] = "ReachabilityAndEmitFlags";
|
|
@@ -42584,7 +42583,7 @@ ${lanes.join("\n")}
|
|
|
42584
42583
|
if (usage.kind === 274 /* ExportAssignment */ && usage.isExportEquals) {
|
|
42585
42584
|
return true;
|
|
42586
42585
|
}
|
|
42587
|
-
if (!!(usage.flags & 8388608 /* JSDoc */) || isInTypeQuery(usage) ||
|
|
42586
|
+
if (!!(usage.flags & 8388608 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) {
|
|
42588
42587
|
return true;
|
|
42589
42588
|
}
|
|
42590
42589
|
if (isUsedInFunctionOrInstanceProperty(usage, declaration)) {
|
|
@@ -42595,9 +42594,6 @@ ${lanes.join("\n")}
|
|
|
42595
42594
|
}
|
|
42596
42595
|
}
|
|
42597
42596
|
return false;
|
|
42598
|
-
function usageInTypeDeclaration() {
|
|
42599
|
-
return !!findAncestor(usage, (node) => isInterfaceDeclaration(node) || isTypeAliasDeclaration(node));
|
|
42600
|
-
}
|
|
42601
42597
|
function isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration2, usage2) {
|
|
42602
42598
|
switch (declaration2.parent.parent.kind) {
|
|
42603
42599
|
case 240 /* VariableStatement */:
|
|
@@ -59304,6 +59300,9 @@ ${lanes.join("\n")}
|
|
|
59304
59300
|
(n) => n.kind === 183 /* TypeQuery */ ? true : n.kind === 79 /* Identifier */ || n.kind === 163 /* QualifiedName */ ? false : "quit"
|
|
59305
59301
|
);
|
|
59306
59302
|
}
|
|
59303
|
+
function isInAmbientOrTypeNode(node) {
|
|
59304
|
+
return !!(node.flags & 16777216 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeLiteralNode(n)));
|
|
59305
|
+
}
|
|
59307
59306
|
function getFlowCacheKey(node, declaredType, initialType, flowContainer) {
|
|
59308
59307
|
switch (node.kind) {
|
|
59309
59308
|
case 79 /* Identifier */:
|
|
@@ -61286,7 +61285,7 @@ ${lanes.join("\n")}
|
|
|
61286
61285
|
while (flowContainer !== declarationContainer && (flowContainer.kind === 215 /* FunctionExpression */ || flowContainer.kind === 216 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) {
|
|
61287
61286
|
flowContainer = getControlFlowContainer(flowContainer);
|
|
61288
61287
|
}
|
|
61289
|
-
const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || node.parent.kind === 278 /* ExportSpecifier */) || node.parent.kind === 232 /* NonNullExpression */ || declaration.kind === 257 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */;
|
|
61288
|
+
const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 278 /* ExportSpecifier */) || node.parent.kind === 232 /* NonNullExpression */ || declaration.kind === 257 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */;
|
|
61290
61289
|
const initialType = assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : type === autoType || type === autoArrayType ? undefinedType : getOptionalType(type);
|
|
61291
61290
|
const flowType = getFlowTypeOfReference(node, type, initialType, flowContainer);
|
|
61292
61291
|
if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) {
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -50,7 +50,7 @@ var path = __toESM(require("path"));
|
|
|
50
50
|
|
|
51
51
|
// src/compiler/corePublic.ts
|
|
52
52
|
var versionMajorMinor = "5.0";
|
|
53
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
53
|
+
var version = `${versionMajorMinor}.0-dev.20221231`;
|
|
54
54
|
|
|
55
55
|
// src/compiler/core.ts
|
|
56
56
|
var emptyArray = [];
|
|
@@ -2929,7 +2929,6 @@ var NodeFlags = /* @__PURE__ */ ((NodeFlags3) => {
|
|
|
2929
2929
|
NodeFlags3[NodeFlags3["JsonFile"] = 67108864] = "JsonFile";
|
|
2930
2930
|
NodeFlags3[NodeFlags3["TypeCached"] = 134217728] = "TypeCached";
|
|
2931
2931
|
NodeFlags3[NodeFlags3["Deprecated"] = 268435456] = "Deprecated";
|
|
2932
|
-
NodeFlags3[NodeFlags3["ConditionalTypeContext"] = 536870912] = "ConditionalTypeContext";
|
|
2933
2932
|
NodeFlags3[NodeFlags3["BlockScoped"] = 3] = "BlockScoped";
|
|
2934
2933
|
NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 768] = "ReachabilityCheckFlags";
|
|
2935
2934
|
NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 2816] = "ReachabilityAndEmitFlags";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.0.0-dev.
|
|
5
|
+
"version": "5.0.0-dev.20221231",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|