@typescript-deploys/pr-build 5.0.0-pr-51771-7 → 5.0.0-pr-51373-23
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 -17
- package/lib/tsserver.js +153181 -150959
- package/lib/tsserverlibrary.js +26 -35
- package/lib/typescript.js +26 -35
- package/lib/typingsInstaller.js +1 -1
- 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-insiders.
|
|
26
|
+
var version = `${versionMajorMinor}.0-insiders.20221206`;
|
|
27
27
|
|
|
28
28
|
// src/compiler/core.ts
|
|
29
29
|
var emptyArray = [];
|
|
@@ -37839,7 +37839,7 @@ function tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory,
|
|
|
37839
37839
|
if (!shortest) {
|
|
37840
37840
|
return void 0;
|
|
37841
37841
|
}
|
|
37842
|
-
return getEmitModuleResolutionKind(compilerOptions) ===
|
|
37842
|
+
return getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */ ? removeFileExtension(shortest) : removeExtensionAndIndexPostFix(shortest, ending, compilerOptions);
|
|
37843
37843
|
}
|
|
37844
37844
|
function tryGetModuleNameAsNodeModule({ path, isRedirect }, { getCanonicalFileName, sourceDirectory }, importingSourceFile, host, options, userPreferences, packageNameOnly, overrideMode) {
|
|
37845
37845
|
if (!host.fileExists || !host.readFile) {
|
|
@@ -55363,11 +55363,7 @@ function createTypeChecker(host) {
|
|
|
55363
55363
|
}
|
|
55364
55364
|
if (source.aliasSymbol && source.aliasSymbol === target.aliasSymbol) {
|
|
55365
55365
|
if (source.aliasTypeArguments) {
|
|
55366
|
-
|
|
55367
|
-
const minParams = getMinTypeArgumentCount(params);
|
|
55368
|
-
const sourceTypes = fillMissingTypeArguments(source.aliasTypeArguments, params, minParams, false);
|
|
55369
|
-
const targetTypes = fillMissingTypeArguments(target.aliasTypeArguments, params, minParams, false);
|
|
55370
|
-
inferFromTypeArguments(sourceTypes, targetTypes, getAliasVariances(source.aliasSymbol));
|
|
55366
|
+
inferFromTypeArguments(source.aliasTypeArguments, target.aliasTypeArguments, getAliasVariances(source.aliasSymbol));
|
|
55371
55367
|
}
|
|
55372
55368
|
return;
|
|
55373
55369
|
}
|
|
@@ -67985,7 +67981,6 @@ function createTypeChecker(host) {
|
|
|
67985
67981
|
let firstDefaultClause;
|
|
67986
67982
|
let hasDuplicateDefaultClause = false;
|
|
67987
67983
|
const expressionType = checkExpression(node.expression);
|
|
67988
|
-
const expressionIsLiteral = isLiteralType(expressionType);
|
|
67989
67984
|
forEach(node.caseBlock.clauses, (clause) => {
|
|
67990
67985
|
if (clause.kind === 293 /* DefaultClause */ && !hasDuplicateDefaultClause) {
|
|
67991
67986
|
if (firstDefaultClause === void 0) {
|
|
@@ -68004,15 +67999,9 @@ function createTypeChecker(host) {
|
|
|
68004
67999
|
}
|
|
68005
68000
|
function createLazyCaseClauseDiagnostics(clause2) {
|
|
68006
68001
|
return () => {
|
|
68007
|
-
|
|
68008
|
-
|
|
68009
|
-
|
|
68010
|
-
if (!caseIsLiteral || !expressionIsLiteral) {
|
|
68011
|
-
caseType = caseIsLiteral ? getBaseTypeOfLiteralType(caseType) : caseType;
|
|
68012
|
-
comparedExpressionType = getBaseTypeOfLiteralType(expressionType);
|
|
68013
|
-
}
|
|
68014
|
-
if (!isTypeEqualityComparableTo(comparedExpressionType, caseType)) {
|
|
68015
|
-
checkTypeComparableTo(caseType, comparedExpressionType, clause2.expression, void 0);
|
|
68002
|
+
const caseType = checkExpression(clause2.expression);
|
|
68003
|
+
if (!isTypeEqualityComparableTo(expressionType, caseType)) {
|
|
68004
|
+
checkTypeComparableTo(caseType, expressionType, clause2.expression, void 0);
|
|
68016
68005
|
}
|
|
68017
68006
|
};
|
|
68018
68007
|
}
|