Skip to content

Commit 409311f

Browse files
committed
Update LKG
1 parent e15166a commit 409311f

9 files changed

+447
-393
lines changed

lib/tsc.js

+75-67
Large diffs are not rendered by default.

lib/tsserver.js

+75-67
Large diffs are not rendered by default.

lib/tsserverlibrary.d.ts

+12-8
Original file line numberDiff line numberDiff line change
@@ -2820,6 +2820,7 @@ declare namespace ts {
28202820
UnionOrIntersection = 196608,
28212821
StructuredType = 229376,
28222822
StructuredOrTypeParameter = 507904,
2823+
TypeVariable = 540672,
28232824
Narrowable = 1033215,
28242825
NotUnionOrUnit = 33281,
28252826
RequiresWidening = 6291456,
@@ -2889,7 +2890,8 @@ declare namespace ts {
28892890
interface UnionOrIntersectionType extends Type {
28902891
types: Type[];
28912892
resolvedProperties: SymbolTable;
2892-
couldContainTypeParameters: boolean;
2893+
resolvedIndexType: IndexType;
2894+
couldContainTypeVariables: boolean;
28932895
}
28942896
interface UnionType extends UnionOrIntersectionType {
28952897
}
@@ -2926,21 +2928,23 @@ declare namespace ts {
29262928
iterableElementType?: Type;
29272929
iteratorElementType?: Type;
29282930
}
2929-
interface TypeParameter extends Type {
2931+
interface TypeVariable extends Type {
2932+
resolvedIndexType: IndexType;
2933+
}
2934+
interface TypeParameter extends TypeVariable {
29302935
constraint: Type;
29312936
target?: TypeParameter;
29322937
mapper?: TypeMapper;
29332938
resolvedApparentType: Type;
2934-
resolvedIndexType: IndexType;
29352939
isThisType?: boolean;
29362940
}
2937-
interface IndexType extends Type {
2938-
type: TypeParameter;
2939-
}
2940-
interface IndexedAccessType extends Type {
2941+
interface IndexedAccessType extends TypeVariable {
29412942
objectType: Type;
29422943
indexType: Type;
29432944
}
2945+
interface IndexType extends Type {
2946+
type: TypeVariable | UnionOrIntersectionType;
2947+
}
29442948
const enum SignatureKind {
29452949
Call = 0,
29462950
Construct = 1,
@@ -7530,7 +7534,7 @@ declare namespace ts {
75307534
key: string;
75317535
message: string;
75327536
};
7533-
Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015: {
7537+
Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT: {
75347538
code: number;
75357539
category: DiagnosticCategory;
75367540
key: string;

lib/tsserverlibrary.js

+75-67
Large diffs are not rendered by default.

lib/typescript.d.ts

+8-5
Original file line numberDiff line numberDiff line change
@@ -1775,6 +1775,7 @@ declare namespace ts {
17751775
UnionOrIntersection = 196608,
17761776
StructuredType = 229376,
17771777
StructuredOrTypeParameter = 507904,
1778+
TypeVariable = 540672,
17781779
Narrowable = 1033215,
17791780
NotUnionOrUnit = 33281,
17801781
}
@@ -1844,16 +1845,18 @@ declare namespace ts {
18441845
elementType: Type;
18451846
finalArrayType?: Type;
18461847
}
1847-
interface TypeParameter extends Type {
1848-
constraint: Type;
1848+
interface TypeVariable extends Type {
18491849
}
1850-
interface IndexType extends Type {
1851-
type: TypeParameter;
1850+
interface TypeParameter extends TypeVariable {
1851+
constraint: Type;
18521852
}
1853-
interface IndexedAccessType extends Type {
1853+
interface IndexedAccessType extends TypeVariable {
18541854
objectType: Type;
18551855
indexType: Type;
18561856
}
1857+
interface IndexType extends Type {
1858+
type: TypeVariable | UnionOrIntersectionType;
1859+
}
18571860
enum SignatureKind {
18581861
Call = 0,
18591862
Construct = 1,

lib/typescript.js

+96-86
Large diffs are not rendered by default.

lib/typescriptServices.d.ts

+8-5
Original file line numberDiff line numberDiff line change
@@ -1775,6 +1775,7 @@ declare namespace ts {
17751775
UnionOrIntersection = 196608,
17761776
StructuredType = 229376,
17771777
StructuredOrTypeParameter = 507904,
1778+
TypeVariable = 540672,
17781779
Narrowable = 1033215,
17791780
NotUnionOrUnit = 33281,
17801781
}
@@ -1844,16 +1845,18 @@ declare namespace ts {
18441845
elementType: Type;
18451846
finalArrayType?: Type;
18461847
}
1847-
interface TypeParameter extends Type {
1848-
constraint: Type;
1848+
interface TypeVariable extends Type {
18491849
}
1850-
interface IndexType extends Type {
1851-
type: TypeParameter;
1850+
interface TypeParameter extends TypeVariable {
1851+
constraint: Type;
18521852
}
1853-
interface IndexedAccessType extends Type {
1853+
interface IndexedAccessType extends TypeVariable {
18541854
objectType: Type;
18551855
indexType: Type;
18561856
}
1857+
interface IndexType extends Type {
1858+
type: TypeVariable | UnionOrIntersectionType;
1859+
}
18571860
enum SignatureKind {
18581861
Call = 0,
18591862
Construct = 1,

lib/typescriptServices.js

+96-86
Large diffs are not rendered by default.

lib/typingsInstaller.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3034,7 +3034,7 @@ var ts;
30343034
Do_not_emit_outputs: { code: 6010, category: ts.DiagnosticCategory.Message, key: "Do_not_emit_outputs_6010", message: "Do not emit outputs." },
30353035
Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking: { code: 6011, category: ts.DiagnosticCategory.Message, key: "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011", message: "Allow default imports from modules with no default export. This does not affect code emit, just typechecking." },
30363036
Skip_type_checking_of_declaration_files: { code: 6012, category: ts.DiagnosticCategory.Message, key: "Skip_type_checking_of_declaration_files_6012", message: "Skip type checking of declaration files." },
3037-
Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015: { code: 6015, category: ts.DiagnosticCategory.Message, key: "Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015_6015", message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', or 'ES2015'" },
3037+
Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT: { code: 6015, category: ts.DiagnosticCategory.Message, key: "Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015", message: "Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'" },
30383038
Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015: { code: 6016, category: ts.DiagnosticCategory.Message, key: "Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015_6016", message: "Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'" },
30393039
Print_this_message: { code: 6017, category: ts.DiagnosticCategory.Message, key: "Print_this_message_6017", message: "Print this message." },
30403040
Print_the_compiler_s_version: { code: 6019, category: ts.DiagnosticCategory.Message, key: "Print_the_compiler_s_version_6019", message: "Print the compiler's version." },
@@ -5043,7 +5043,7 @@ var ts;
50435043
"es2017": 4,
50445044
"esnext": 5,
50455045
}),
5046-
description: ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES2015,
5046+
description: ts.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT,
50475047
paramType: ts.Diagnostics.VERSION,
50485048
},
50495049
{

0 commit comments

Comments
 (0)