@schematics/angular 16.1.0-next.1 → 16.1.0-rc.0
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/application/schema.js +3 -3
- package/component/schema.js +4 -4
- package/config/schema.js +2 -2
- package/guard/schema.js +2 -2
- package/module/schema.js +2 -2
- package/ng-new/schema.js +4 -4
- package/package.json +3 -3
- package/private/standalone.d.ts +13 -1
- package/private/standalone.js +14 -2
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +534 -420
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +40535 -38645
- package/utility/ast-utils.d.ts +16 -6
- package/utility/ast-utils.js +57 -27
- package/utility/dependencies.js +2 -2
- package/utility/dependency.js +4 -4
- package/utility/index.d.ts +1 -0
- package/utility/index.js +16 -1
- package/utility/latest-versions/package.json +2 -2
- package/utility/standalone/app_config.d.ts +23 -0
- package/utility/standalone/app_config.js +93 -0
- package/utility/standalone/code_block.d.ts +53 -0
- package/utility/standalone/code_block.js +83 -0
- package/utility/standalone/index.d.ts +9 -0
- package/utility/standalone/index.js +14 -0
- package/utility/standalone/rules.d.ts +45 -0
- package/utility/standalone/rules.js +190 -0
- package/utility/standalone/util.d.ts +35 -0
- package/utility/standalone/util.js +134 -0
- package/utility/workspace-models.js +3 -3
- package/workspace/schema.js +2 -2
|
@@ -14,7 +14,7 @@ and limitations under the License.
|
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
16
|
declare namespace ts {
|
|
17
|
-
const versionMajorMinor = "5.
|
|
17
|
+
const versionMajorMinor = "5.1";
|
|
18
18
|
/** The version of the TypeScript compiler release */
|
|
19
19
|
const version: string;
|
|
20
20
|
/**
|
|
@@ -51,395 +51,395 @@ declare namespace ts {
|
|
|
51
51
|
WhitespaceTrivia = 5,
|
|
52
52
|
ShebangTrivia = 6,
|
|
53
53
|
ConflictMarkerTrivia = 7,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
54
|
+
NonTextFileMarkerTrivia = 8,
|
|
55
|
+
NumericLiteral = 9,
|
|
56
|
+
BigIntLiteral = 10,
|
|
57
|
+
StringLiteral = 11,
|
|
58
|
+
JsxText = 12,
|
|
59
|
+
JsxTextAllWhiteSpaces = 13,
|
|
60
|
+
RegularExpressionLiteral = 14,
|
|
61
|
+
NoSubstitutionTemplateLiteral = 15,
|
|
62
|
+
TemplateHead = 16,
|
|
63
|
+
TemplateMiddle = 17,
|
|
64
|
+
TemplateTail = 18,
|
|
65
|
+
OpenBraceToken = 19,
|
|
66
|
+
CloseBraceToken = 20,
|
|
67
|
+
OpenParenToken = 21,
|
|
68
|
+
CloseParenToken = 22,
|
|
69
|
+
OpenBracketToken = 23,
|
|
70
|
+
CloseBracketToken = 24,
|
|
71
|
+
DotToken = 25,
|
|
72
|
+
DotDotDotToken = 26,
|
|
73
|
+
SemicolonToken = 27,
|
|
74
|
+
CommaToken = 28,
|
|
75
|
+
QuestionDotToken = 29,
|
|
76
|
+
LessThanToken = 30,
|
|
77
|
+
LessThanSlashToken = 31,
|
|
78
|
+
GreaterThanToken = 32,
|
|
79
|
+
LessThanEqualsToken = 33,
|
|
80
|
+
GreaterThanEqualsToken = 34,
|
|
81
|
+
EqualsEqualsToken = 35,
|
|
82
|
+
ExclamationEqualsToken = 36,
|
|
83
|
+
EqualsEqualsEqualsToken = 37,
|
|
84
|
+
ExclamationEqualsEqualsToken = 38,
|
|
85
|
+
EqualsGreaterThanToken = 39,
|
|
86
|
+
PlusToken = 40,
|
|
87
|
+
MinusToken = 41,
|
|
88
|
+
AsteriskToken = 42,
|
|
89
|
+
AsteriskAsteriskToken = 43,
|
|
90
|
+
SlashToken = 44,
|
|
91
|
+
PercentToken = 45,
|
|
92
|
+
PlusPlusToken = 46,
|
|
93
|
+
MinusMinusToken = 47,
|
|
94
|
+
LessThanLessThanToken = 48,
|
|
95
|
+
GreaterThanGreaterThanToken = 49,
|
|
96
|
+
GreaterThanGreaterThanGreaterThanToken = 50,
|
|
97
|
+
AmpersandToken = 51,
|
|
98
|
+
BarToken = 52,
|
|
99
|
+
CaretToken = 53,
|
|
100
|
+
ExclamationToken = 54,
|
|
101
|
+
TildeToken = 55,
|
|
102
|
+
AmpersandAmpersandToken = 56,
|
|
103
|
+
BarBarToken = 57,
|
|
104
|
+
QuestionToken = 58,
|
|
105
|
+
ColonToken = 59,
|
|
106
|
+
AtToken = 60,
|
|
107
|
+
QuestionQuestionToken = 61,
|
|
107
108
|
/** Only the JSDoc scanner produces BacktickToken. The normal scanner produces NoSubstitutionTemplateLiteral and related kinds. */
|
|
108
|
-
BacktickToken =
|
|
109
|
+
BacktickToken = 62,
|
|
109
110
|
/** Only the JSDoc scanner produces HashToken. The normal scanner produces PrivateIdentifier. */
|
|
110
|
-
HashToken =
|
|
111
|
-
EqualsToken =
|
|
112
|
-
PlusEqualsToken =
|
|
113
|
-
MinusEqualsToken =
|
|
114
|
-
AsteriskEqualsToken =
|
|
115
|
-
AsteriskAsteriskEqualsToken =
|
|
116
|
-
SlashEqualsToken =
|
|
117
|
-
PercentEqualsToken =
|
|
118
|
-
LessThanLessThanEqualsToken =
|
|
119
|
-
GreaterThanGreaterThanEqualsToken =
|
|
120
|
-
GreaterThanGreaterThanGreaterThanEqualsToken =
|
|
121
|
-
AmpersandEqualsToken =
|
|
122
|
-
BarEqualsToken =
|
|
123
|
-
BarBarEqualsToken =
|
|
124
|
-
AmpersandAmpersandEqualsToken =
|
|
125
|
-
QuestionQuestionEqualsToken =
|
|
126
|
-
CaretEqualsToken =
|
|
127
|
-
Identifier =
|
|
128
|
-
PrivateIdentifier =
|
|
129
|
-
BreakKeyword =
|
|
130
|
-
CaseKeyword =
|
|
131
|
-
CatchKeyword =
|
|
132
|
-
ClassKeyword =
|
|
133
|
-
ConstKeyword =
|
|
134
|
-
ContinueKeyword =
|
|
135
|
-
DebuggerKeyword =
|
|
136
|
-
DefaultKeyword =
|
|
137
|
-
DeleteKeyword =
|
|
138
|
-
DoKeyword =
|
|
139
|
-
ElseKeyword =
|
|
140
|
-
EnumKeyword =
|
|
141
|
-
ExportKeyword =
|
|
142
|
-
ExtendsKeyword =
|
|
143
|
-
FalseKeyword =
|
|
144
|
-
FinallyKeyword =
|
|
145
|
-
ForKeyword =
|
|
146
|
-
FunctionKeyword =
|
|
147
|
-
IfKeyword =
|
|
148
|
-
ImportKeyword =
|
|
149
|
-
InKeyword =
|
|
150
|
-
InstanceOfKeyword =
|
|
151
|
-
NewKeyword =
|
|
152
|
-
NullKeyword =
|
|
153
|
-
ReturnKeyword =
|
|
154
|
-
SuperKeyword =
|
|
155
|
-
SwitchKeyword =
|
|
156
|
-
ThisKeyword =
|
|
157
|
-
ThrowKeyword =
|
|
158
|
-
TrueKeyword =
|
|
159
|
-
TryKeyword =
|
|
160
|
-
TypeOfKeyword =
|
|
161
|
-
VarKeyword =
|
|
162
|
-
VoidKeyword =
|
|
163
|
-
WhileKeyword =
|
|
164
|
-
WithKeyword =
|
|
165
|
-
ImplementsKeyword =
|
|
166
|
-
InterfaceKeyword =
|
|
167
|
-
LetKeyword =
|
|
168
|
-
PackageKeyword =
|
|
169
|
-
PrivateKeyword =
|
|
170
|
-
ProtectedKeyword =
|
|
171
|
-
PublicKeyword =
|
|
172
|
-
StaticKeyword =
|
|
173
|
-
YieldKeyword =
|
|
174
|
-
AbstractKeyword =
|
|
175
|
-
AccessorKeyword =
|
|
176
|
-
AsKeyword =
|
|
177
|
-
AssertsKeyword =
|
|
178
|
-
AssertKeyword =
|
|
179
|
-
AnyKeyword =
|
|
180
|
-
AsyncKeyword =
|
|
181
|
-
AwaitKeyword =
|
|
182
|
-
BooleanKeyword =
|
|
183
|
-
ConstructorKeyword =
|
|
184
|
-
DeclareKeyword =
|
|
185
|
-
GetKeyword =
|
|
186
|
-
InferKeyword =
|
|
187
|
-
IntrinsicKeyword =
|
|
188
|
-
IsKeyword =
|
|
189
|
-
KeyOfKeyword =
|
|
190
|
-
ModuleKeyword =
|
|
191
|
-
NamespaceKeyword =
|
|
192
|
-
NeverKeyword =
|
|
193
|
-
OutKeyword =
|
|
194
|
-
ReadonlyKeyword =
|
|
195
|
-
RequireKeyword =
|
|
196
|
-
NumberKeyword =
|
|
197
|
-
ObjectKeyword =
|
|
198
|
-
SatisfiesKeyword =
|
|
199
|
-
SetKeyword =
|
|
200
|
-
StringKeyword =
|
|
201
|
-
SymbolKeyword =
|
|
202
|
-
TypeKeyword =
|
|
203
|
-
UndefinedKeyword =
|
|
204
|
-
UniqueKeyword =
|
|
205
|
-
UnknownKeyword =
|
|
206
|
-
FromKeyword =
|
|
207
|
-
GlobalKeyword =
|
|
208
|
-
BigIntKeyword =
|
|
209
|
-
OverrideKeyword =
|
|
210
|
-
OfKeyword =
|
|
211
|
-
QualifiedName =
|
|
212
|
-
ComputedPropertyName =
|
|
213
|
-
TypeParameter =
|
|
214
|
-
Parameter =
|
|
215
|
-
Decorator =
|
|
216
|
-
PropertySignature =
|
|
217
|
-
PropertyDeclaration =
|
|
218
|
-
MethodSignature =
|
|
219
|
-
MethodDeclaration =
|
|
220
|
-
ClassStaticBlockDeclaration =
|
|
221
|
-
Constructor =
|
|
222
|
-
GetAccessor =
|
|
223
|
-
SetAccessor =
|
|
224
|
-
CallSignature =
|
|
225
|
-
ConstructSignature =
|
|
226
|
-
IndexSignature =
|
|
227
|
-
TypePredicate =
|
|
228
|
-
TypeReference =
|
|
229
|
-
FunctionType =
|
|
230
|
-
ConstructorType =
|
|
231
|
-
TypeQuery =
|
|
232
|
-
TypeLiteral =
|
|
233
|
-
ArrayType =
|
|
234
|
-
TupleType =
|
|
235
|
-
OptionalType =
|
|
236
|
-
RestType =
|
|
237
|
-
UnionType =
|
|
238
|
-
IntersectionType =
|
|
239
|
-
ConditionalType =
|
|
240
|
-
InferType =
|
|
241
|
-
ParenthesizedType =
|
|
242
|
-
ThisType =
|
|
243
|
-
TypeOperator =
|
|
244
|
-
IndexedAccessType =
|
|
245
|
-
MappedType =
|
|
246
|
-
LiteralType =
|
|
247
|
-
NamedTupleMember =
|
|
248
|
-
TemplateLiteralType =
|
|
249
|
-
TemplateLiteralTypeSpan =
|
|
250
|
-
ImportType =
|
|
251
|
-
ObjectBindingPattern =
|
|
252
|
-
ArrayBindingPattern =
|
|
253
|
-
BindingElement =
|
|
254
|
-
ArrayLiteralExpression =
|
|
255
|
-
ObjectLiteralExpression =
|
|
256
|
-
PropertyAccessExpression =
|
|
257
|
-
ElementAccessExpression =
|
|
258
|
-
CallExpression =
|
|
259
|
-
NewExpression =
|
|
260
|
-
TaggedTemplateExpression =
|
|
261
|
-
TypeAssertionExpression =
|
|
262
|
-
ParenthesizedExpression =
|
|
263
|
-
FunctionExpression =
|
|
264
|
-
ArrowFunction =
|
|
265
|
-
DeleteExpression =
|
|
266
|
-
TypeOfExpression =
|
|
267
|
-
VoidExpression =
|
|
268
|
-
AwaitExpression =
|
|
269
|
-
PrefixUnaryExpression =
|
|
270
|
-
PostfixUnaryExpression =
|
|
271
|
-
BinaryExpression =
|
|
272
|
-
ConditionalExpression =
|
|
273
|
-
TemplateExpression =
|
|
274
|
-
YieldExpression =
|
|
275
|
-
SpreadElement =
|
|
276
|
-
ClassExpression =
|
|
277
|
-
OmittedExpression =
|
|
278
|
-
ExpressionWithTypeArguments =
|
|
279
|
-
AsExpression =
|
|
280
|
-
NonNullExpression =
|
|
281
|
-
MetaProperty =
|
|
282
|
-
SyntheticExpression =
|
|
283
|
-
SatisfiesExpression =
|
|
284
|
-
TemplateSpan =
|
|
285
|
-
SemicolonClassElement =
|
|
286
|
-
Block =
|
|
287
|
-
EmptyStatement =
|
|
288
|
-
VariableStatement =
|
|
289
|
-
ExpressionStatement =
|
|
290
|
-
IfStatement =
|
|
291
|
-
DoStatement =
|
|
292
|
-
WhileStatement =
|
|
293
|
-
ForStatement =
|
|
294
|
-
ForInStatement =
|
|
295
|
-
ForOfStatement =
|
|
296
|
-
ContinueStatement =
|
|
297
|
-
BreakStatement =
|
|
298
|
-
ReturnStatement =
|
|
299
|
-
WithStatement =
|
|
300
|
-
SwitchStatement =
|
|
301
|
-
LabeledStatement =
|
|
302
|
-
ThrowStatement =
|
|
303
|
-
TryStatement =
|
|
304
|
-
DebuggerStatement =
|
|
305
|
-
VariableDeclaration =
|
|
306
|
-
VariableDeclarationList =
|
|
307
|
-
FunctionDeclaration =
|
|
308
|
-
ClassDeclaration =
|
|
309
|
-
InterfaceDeclaration =
|
|
310
|
-
TypeAliasDeclaration =
|
|
311
|
-
EnumDeclaration =
|
|
312
|
-
ModuleDeclaration =
|
|
313
|
-
ModuleBlock =
|
|
314
|
-
CaseBlock =
|
|
315
|
-
NamespaceExportDeclaration =
|
|
316
|
-
ImportEqualsDeclaration =
|
|
317
|
-
ImportDeclaration =
|
|
318
|
-
ImportClause =
|
|
319
|
-
NamespaceImport =
|
|
320
|
-
NamedImports =
|
|
321
|
-
ImportSpecifier =
|
|
322
|
-
ExportAssignment =
|
|
323
|
-
ExportDeclaration =
|
|
324
|
-
NamedExports =
|
|
325
|
-
NamespaceExport =
|
|
326
|
-
ExportSpecifier =
|
|
327
|
-
MissingDeclaration =
|
|
328
|
-
ExternalModuleReference =
|
|
329
|
-
JsxElement =
|
|
330
|
-
JsxSelfClosingElement =
|
|
331
|
-
JsxOpeningElement =
|
|
332
|
-
JsxClosingElement =
|
|
333
|
-
JsxFragment =
|
|
334
|
-
JsxOpeningFragment =
|
|
335
|
-
JsxClosingFragment =
|
|
336
|
-
JsxAttribute =
|
|
337
|
-
JsxAttributes =
|
|
338
|
-
JsxSpreadAttribute =
|
|
339
|
-
JsxExpression =
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
/** @deprecated */
|
|
353
|
-
/** @deprecated */
|
|
354
|
-
/** @deprecated */
|
|
355
|
-
/** @deprecated */
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
/** @deprecated */
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
111
|
+
HashToken = 63,
|
|
112
|
+
EqualsToken = 64,
|
|
113
|
+
PlusEqualsToken = 65,
|
|
114
|
+
MinusEqualsToken = 66,
|
|
115
|
+
AsteriskEqualsToken = 67,
|
|
116
|
+
AsteriskAsteriskEqualsToken = 68,
|
|
117
|
+
SlashEqualsToken = 69,
|
|
118
|
+
PercentEqualsToken = 70,
|
|
119
|
+
LessThanLessThanEqualsToken = 71,
|
|
120
|
+
GreaterThanGreaterThanEqualsToken = 72,
|
|
121
|
+
GreaterThanGreaterThanGreaterThanEqualsToken = 73,
|
|
122
|
+
AmpersandEqualsToken = 74,
|
|
123
|
+
BarEqualsToken = 75,
|
|
124
|
+
BarBarEqualsToken = 76,
|
|
125
|
+
AmpersandAmpersandEqualsToken = 77,
|
|
126
|
+
QuestionQuestionEqualsToken = 78,
|
|
127
|
+
CaretEqualsToken = 79,
|
|
128
|
+
Identifier = 80,
|
|
129
|
+
PrivateIdentifier = 81,
|
|
130
|
+
BreakKeyword = 83,
|
|
131
|
+
CaseKeyword = 84,
|
|
132
|
+
CatchKeyword = 85,
|
|
133
|
+
ClassKeyword = 86,
|
|
134
|
+
ConstKeyword = 87,
|
|
135
|
+
ContinueKeyword = 88,
|
|
136
|
+
DebuggerKeyword = 89,
|
|
137
|
+
DefaultKeyword = 90,
|
|
138
|
+
DeleteKeyword = 91,
|
|
139
|
+
DoKeyword = 92,
|
|
140
|
+
ElseKeyword = 93,
|
|
141
|
+
EnumKeyword = 94,
|
|
142
|
+
ExportKeyword = 95,
|
|
143
|
+
ExtendsKeyword = 96,
|
|
144
|
+
FalseKeyword = 97,
|
|
145
|
+
FinallyKeyword = 98,
|
|
146
|
+
ForKeyword = 99,
|
|
147
|
+
FunctionKeyword = 100,
|
|
148
|
+
IfKeyword = 101,
|
|
149
|
+
ImportKeyword = 102,
|
|
150
|
+
InKeyword = 103,
|
|
151
|
+
InstanceOfKeyword = 104,
|
|
152
|
+
NewKeyword = 105,
|
|
153
|
+
NullKeyword = 106,
|
|
154
|
+
ReturnKeyword = 107,
|
|
155
|
+
SuperKeyword = 108,
|
|
156
|
+
SwitchKeyword = 109,
|
|
157
|
+
ThisKeyword = 110,
|
|
158
|
+
ThrowKeyword = 111,
|
|
159
|
+
TrueKeyword = 112,
|
|
160
|
+
TryKeyword = 113,
|
|
161
|
+
TypeOfKeyword = 114,
|
|
162
|
+
VarKeyword = 115,
|
|
163
|
+
VoidKeyword = 116,
|
|
164
|
+
WhileKeyword = 117,
|
|
165
|
+
WithKeyword = 118,
|
|
166
|
+
ImplementsKeyword = 119,
|
|
167
|
+
InterfaceKeyword = 120,
|
|
168
|
+
LetKeyword = 121,
|
|
169
|
+
PackageKeyword = 122,
|
|
170
|
+
PrivateKeyword = 123,
|
|
171
|
+
ProtectedKeyword = 124,
|
|
172
|
+
PublicKeyword = 125,
|
|
173
|
+
StaticKeyword = 126,
|
|
174
|
+
YieldKeyword = 127,
|
|
175
|
+
AbstractKeyword = 128,
|
|
176
|
+
AccessorKeyword = 129,
|
|
177
|
+
AsKeyword = 130,
|
|
178
|
+
AssertsKeyword = 131,
|
|
179
|
+
AssertKeyword = 132,
|
|
180
|
+
AnyKeyword = 133,
|
|
181
|
+
AsyncKeyword = 134,
|
|
182
|
+
AwaitKeyword = 135,
|
|
183
|
+
BooleanKeyword = 136,
|
|
184
|
+
ConstructorKeyword = 137,
|
|
185
|
+
DeclareKeyword = 138,
|
|
186
|
+
GetKeyword = 139,
|
|
187
|
+
InferKeyword = 140,
|
|
188
|
+
IntrinsicKeyword = 141,
|
|
189
|
+
IsKeyword = 142,
|
|
190
|
+
KeyOfKeyword = 143,
|
|
191
|
+
ModuleKeyword = 144,
|
|
192
|
+
NamespaceKeyword = 145,
|
|
193
|
+
NeverKeyword = 146,
|
|
194
|
+
OutKeyword = 147,
|
|
195
|
+
ReadonlyKeyword = 148,
|
|
196
|
+
RequireKeyword = 149,
|
|
197
|
+
NumberKeyword = 150,
|
|
198
|
+
ObjectKeyword = 151,
|
|
199
|
+
SatisfiesKeyword = 152,
|
|
200
|
+
SetKeyword = 153,
|
|
201
|
+
StringKeyword = 154,
|
|
202
|
+
SymbolKeyword = 155,
|
|
203
|
+
TypeKeyword = 156,
|
|
204
|
+
UndefinedKeyword = 157,
|
|
205
|
+
UniqueKeyword = 158,
|
|
206
|
+
UnknownKeyword = 159,
|
|
207
|
+
FromKeyword = 160,
|
|
208
|
+
GlobalKeyword = 161,
|
|
209
|
+
BigIntKeyword = 162,
|
|
210
|
+
OverrideKeyword = 163,
|
|
211
|
+
OfKeyword = 164,
|
|
212
|
+
QualifiedName = 165,
|
|
213
|
+
ComputedPropertyName = 166,
|
|
214
|
+
TypeParameter = 167,
|
|
215
|
+
Parameter = 168,
|
|
216
|
+
Decorator = 169,
|
|
217
|
+
PropertySignature = 170,
|
|
218
|
+
PropertyDeclaration = 171,
|
|
219
|
+
MethodSignature = 172,
|
|
220
|
+
MethodDeclaration = 173,
|
|
221
|
+
ClassStaticBlockDeclaration = 174,
|
|
222
|
+
Constructor = 175,
|
|
223
|
+
GetAccessor = 176,
|
|
224
|
+
SetAccessor = 177,
|
|
225
|
+
CallSignature = 178,
|
|
226
|
+
ConstructSignature = 179,
|
|
227
|
+
IndexSignature = 180,
|
|
228
|
+
TypePredicate = 181,
|
|
229
|
+
TypeReference = 182,
|
|
230
|
+
FunctionType = 183,
|
|
231
|
+
ConstructorType = 184,
|
|
232
|
+
TypeQuery = 185,
|
|
233
|
+
TypeLiteral = 186,
|
|
234
|
+
ArrayType = 187,
|
|
235
|
+
TupleType = 188,
|
|
236
|
+
OptionalType = 189,
|
|
237
|
+
RestType = 190,
|
|
238
|
+
UnionType = 191,
|
|
239
|
+
IntersectionType = 192,
|
|
240
|
+
ConditionalType = 193,
|
|
241
|
+
InferType = 194,
|
|
242
|
+
ParenthesizedType = 195,
|
|
243
|
+
ThisType = 196,
|
|
244
|
+
TypeOperator = 197,
|
|
245
|
+
IndexedAccessType = 198,
|
|
246
|
+
MappedType = 199,
|
|
247
|
+
LiteralType = 200,
|
|
248
|
+
NamedTupleMember = 201,
|
|
249
|
+
TemplateLiteralType = 202,
|
|
250
|
+
TemplateLiteralTypeSpan = 203,
|
|
251
|
+
ImportType = 204,
|
|
252
|
+
ObjectBindingPattern = 205,
|
|
253
|
+
ArrayBindingPattern = 206,
|
|
254
|
+
BindingElement = 207,
|
|
255
|
+
ArrayLiteralExpression = 208,
|
|
256
|
+
ObjectLiteralExpression = 209,
|
|
257
|
+
PropertyAccessExpression = 210,
|
|
258
|
+
ElementAccessExpression = 211,
|
|
259
|
+
CallExpression = 212,
|
|
260
|
+
NewExpression = 213,
|
|
261
|
+
TaggedTemplateExpression = 214,
|
|
262
|
+
TypeAssertionExpression = 215,
|
|
263
|
+
ParenthesizedExpression = 216,
|
|
264
|
+
FunctionExpression = 217,
|
|
265
|
+
ArrowFunction = 218,
|
|
266
|
+
DeleteExpression = 219,
|
|
267
|
+
TypeOfExpression = 220,
|
|
268
|
+
VoidExpression = 221,
|
|
269
|
+
AwaitExpression = 222,
|
|
270
|
+
PrefixUnaryExpression = 223,
|
|
271
|
+
PostfixUnaryExpression = 224,
|
|
272
|
+
BinaryExpression = 225,
|
|
273
|
+
ConditionalExpression = 226,
|
|
274
|
+
TemplateExpression = 227,
|
|
275
|
+
YieldExpression = 228,
|
|
276
|
+
SpreadElement = 229,
|
|
277
|
+
ClassExpression = 230,
|
|
278
|
+
OmittedExpression = 231,
|
|
279
|
+
ExpressionWithTypeArguments = 232,
|
|
280
|
+
AsExpression = 233,
|
|
281
|
+
NonNullExpression = 234,
|
|
282
|
+
MetaProperty = 235,
|
|
283
|
+
SyntheticExpression = 236,
|
|
284
|
+
SatisfiesExpression = 237,
|
|
285
|
+
TemplateSpan = 238,
|
|
286
|
+
SemicolonClassElement = 239,
|
|
287
|
+
Block = 240,
|
|
288
|
+
EmptyStatement = 241,
|
|
289
|
+
VariableStatement = 242,
|
|
290
|
+
ExpressionStatement = 243,
|
|
291
|
+
IfStatement = 244,
|
|
292
|
+
DoStatement = 245,
|
|
293
|
+
WhileStatement = 246,
|
|
294
|
+
ForStatement = 247,
|
|
295
|
+
ForInStatement = 248,
|
|
296
|
+
ForOfStatement = 249,
|
|
297
|
+
ContinueStatement = 250,
|
|
298
|
+
BreakStatement = 251,
|
|
299
|
+
ReturnStatement = 252,
|
|
300
|
+
WithStatement = 253,
|
|
301
|
+
SwitchStatement = 254,
|
|
302
|
+
LabeledStatement = 255,
|
|
303
|
+
ThrowStatement = 256,
|
|
304
|
+
TryStatement = 257,
|
|
305
|
+
DebuggerStatement = 258,
|
|
306
|
+
VariableDeclaration = 259,
|
|
307
|
+
VariableDeclarationList = 260,
|
|
308
|
+
FunctionDeclaration = 261,
|
|
309
|
+
ClassDeclaration = 262,
|
|
310
|
+
InterfaceDeclaration = 263,
|
|
311
|
+
TypeAliasDeclaration = 264,
|
|
312
|
+
EnumDeclaration = 265,
|
|
313
|
+
ModuleDeclaration = 266,
|
|
314
|
+
ModuleBlock = 267,
|
|
315
|
+
CaseBlock = 268,
|
|
316
|
+
NamespaceExportDeclaration = 269,
|
|
317
|
+
ImportEqualsDeclaration = 270,
|
|
318
|
+
ImportDeclaration = 271,
|
|
319
|
+
ImportClause = 272,
|
|
320
|
+
NamespaceImport = 273,
|
|
321
|
+
NamedImports = 274,
|
|
322
|
+
ImportSpecifier = 275,
|
|
323
|
+
ExportAssignment = 276,
|
|
324
|
+
ExportDeclaration = 277,
|
|
325
|
+
NamedExports = 278,
|
|
326
|
+
NamespaceExport = 279,
|
|
327
|
+
ExportSpecifier = 280,
|
|
328
|
+
MissingDeclaration = 281,
|
|
329
|
+
ExternalModuleReference = 282,
|
|
330
|
+
JsxElement = 283,
|
|
331
|
+
JsxSelfClosingElement = 284,
|
|
332
|
+
JsxOpeningElement = 285,
|
|
333
|
+
JsxClosingElement = 286,
|
|
334
|
+
JsxFragment = 287,
|
|
335
|
+
JsxOpeningFragment = 288,
|
|
336
|
+
JsxClosingFragment = 289,
|
|
337
|
+
JsxAttribute = 290,
|
|
338
|
+
JsxAttributes = 291,
|
|
339
|
+
JsxSpreadAttribute = 292,
|
|
340
|
+
JsxExpression = 293,
|
|
341
|
+
JsxNamespacedName = 294,
|
|
342
|
+
CaseClause = 295,
|
|
343
|
+
DefaultClause = 296,
|
|
344
|
+
HeritageClause = 297,
|
|
345
|
+
CatchClause = 298,
|
|
346
|
+
AssertClause = 299,
|
|
347
|
+
AssertEntry = 300,
|
|
348
|
+
ImportTypeAssertionContainer = 301,
|
|
349
|
+
PropertyAssignment = 302,
|
|
350
|
+
ShorthandPropertyAssignment = 303,
|
|
351
|
+
SpreadAssignment = 304,
|
|
352
|
+
EnumMember = 305,
|
|
353
|
+
/** @deprecated */ UnparsedPrologue = 306,
|
|
354
|
+
/** @deprecated */ UnparsedPrepend = 307,
|
|
355
|
+
/** @deprecated */ UnparsedText = 308,
|
|
356
|
+
/** @deprecated */ UnparsedInternalText = 309,
|
|
357
|
+
/** @deprecated */ UnparsedSyntheticReference = 310,
|
|
358
|
+
SourceFile = 311,
|
|
359
|
+
Bundle = 312,
|
|
360
|
+
/** @deprecated */ UnparsedSource = 313,
|
|
361
|
+
/** @deprecated */ InputFiles = 314,
|
|
362
|
+
JSDocTypeExpression = 315,
|
|
363
|
+
JSDocNameReference = 316,
|
|
364
|
+
JSDocMemberName = 317,
|
|
365
|
+
JSDocAllType = 318,
|
|
366
|
+
JSDocUnknownType = 319,
|
|
367
|
+
JSDocNullableType = 320,
|
|
368
|
+
JSDocNonNullableType = 321,
|
|
369
|
+
JSDocOptionalType = 322,
|
|
370
|
+
JSDocFunctionType = 323,
|
|
371
|
+
JSDocVariadicType = 324,
|
|
372
|
+
JSDocNamepathType = 325,
|
|
373
|
+
JSDoc = 326,
|
|
372
374
|
/** @deprecated Use SyntaxKind.JSDoc */
|
|
373
|
-
JSDocComment =
|
|
374
|
-
JSDocText =
|
|
375
|
-
JSDocTypeLiteral =
|
|
376
|
-
JSDocSignature =
|
|
377
|
-
JSDocLink =
|
|
378
|
-
JSDocLinkCode =
|
|
379
|
-
JSDocLinkPlain =
|
|
380
|
-
JSDocTag =
|
|
381
|
-
JSDocAugmentsTag =
|
|
382
|
-
JSDocImplementsTag =
|
|
383
|
-
JSDocAuthorTag =
|
|
384
|
-
JSDocDeprecatedTag =
|
|
385
|
-
JSDocClassTag =
|
|
386
|
-
JSDocPublicTag =
|
|
387
|
-
JSDocPrivateTag =
|
|
388
|
-
JSDocProtectedTag =
|
|
389
|
-
JSDocReadonlyTag =
|
|
390
|
-
JSDocOverrideTag =
|
|
391
|
-
JSDocCallbackTag =
|
|
392
|
-
JSDocOverloadTag =
|
|
393
|
-
JSDocEnumTag =
|
|
394
|
-
JSDocParameterTag =
|
|
395
|
-
JSDocReturnTag =
|
|
396
|
-
JSDocThisTag =
|
|
397
|
-
JSDocTypeTag =
|
|
398
|
-
JSDocTemplateTag =
|
|
399
|
-
JSDocTypedefTag =
|
|
400
|
-
JSDocSeeTag =
|
|
401
|
-
JSDocPropertyTag =
|
|
402
|
-
JSDocThrowsTag =
|
|
403
|
-
JSDocSatisfiesTag =
|
|
404
|
-
SyntaxList =
|
|
405
|
-
NotEmittedStatement =
|
|
406
|
-
PartiallyEmittedExpression =
|
|
407
|
-
CommaListExpression =
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
FirstPunctuation = 18,
|
|
425
|
-
LastPunctuation = 78,
|
|
375
|
+
JSDocComment = 326,
|
|
376
|
+
JSDocText = 327,
|
|
377
|
+
JSDocTypeLiteral = 328,
|
|
378
|
+
JSDocSignature = 329,
|
|
379
|
+
JSDocLink = 330,
|
|
380
|
+
JSDocLinkCode = 331,
|
|
381
|
+
JSDocLinkPlain = 332,
|
|
382
|
+
JSDocTag = 333,
|
|
383
|
+
JSDocAugmentsTag = 334,
|
|
384
|
+
JSDocImplementsTag = 335,
|
|
385
|
+
JSDocAuthorTag = 336,
|
|
386
|
+
JSDocDeprecatedTag = 337,
|
|
387
|
+
JSDocClassTag = 338,
|
|
388
|
+
JSDocPublicTag = 339,
|
|
389
|
+
JSDocPrivateTag = 340,
|
|
390
|
+
JSDocProtectedTag = 341,
|
|
391
|
+
JSDocReadonlyTag = 342,
|
|
392
|
+
JSDocOverrideTag = 343,
|
|
393
|
+
JSDocCallbackTag = 344,
|
|
394
|
+
JSDocOverloadTag = 345,
|
|
395
|
+
JSDocEnumTag = 346,
|
|
396
|
+
JSDocParameterTag = 347,
|
|
397
|
+
JSDocReturnTag = 348,
|
|
398
|
+
JSDocThisTag = 349,
|
|
399
|
+
JSDocTypeTag = 350,
|
|
400
|
+
JSDocTemplateTag = 351,
|
|
401
|
+
JSDocTypedefTag = 352,
|
|
402
|
+
JSDocSeeTag = 353,
|
|
403
|
+
JSDocPropertyTag = 354,
|
|
404
|
+
JSDocThrowsTag = 355,
|
|
405
|
+
JSDocSatisfiesTag = 356,
|
|
406
|
+
SyntaxList = 357,
|
|
407
|
+
NotEmittedStatement = 358,
|
|
408
|
+
PartiallyEmittedExpression = 359,
|
|
409
|
+
CommaListExpression = 360,
|
|
410
|
+
SyntheticReferenceExpression = 361,
|
|
411
|
+
Count = 362,
|
|
412
|
+
FirstAssignment = 64,
|
|
413
|
+
LastAssignment = 79,
|
|
414
|
+
FirstCompoundAssignment = 65,
|
|
415
|
+
LastCompoundAssignment = 79,
|
|
416
|
+
FirstReservedWord = 83,
|
|
417
|
+
LastReservedWord = 118,
|
|
418
|
+
FirstKeyword = 83,
|
|
419
|
+
LastKeyword = 164,
|
|
420
|
+
FirstFutureReservedWord = 119,
|
|
421
|
+
LastFutureReservedWord = 127,
|
|
422
|
+
FirstTypeNode = 181,
|
|
423
|
+
LastTypeNode = 204,
|
|
424
|
+
FirstPunctuation = 19,
|
|
425
|
+
LastPunctuation = 79,
|
|
426
426
|
FirstToken = 0,
|
|
427
|
-
LastToken =
|
|
427
|
+
LastToken = 164,
|
|
428
428
|
FirstTriviaToken = 2,
|
|
429
429
|
LastTriviaToken = 7,
|
|
430
|
-
FirstLiteralToken =
|
|
431
|
-
LastLiteralToken =
|
|
432
|
-
FirstTemplateToken =
|
|
433
|
-
LastTemplateToken =
|
|
434
|
-
FirstBinaryOperator =
|
|
435
|
-
LastBinaryOperator =
|
|
436
|
-
FirstStatement =
|
|
437
|
-
LastStatement =
|
|
438
|
-
FirstNode =
|
|
439
|
-
FirstJSDocNode =
|
|
440
|
-
LastJSDocNode =
|
|
441
|
-
FirstJSDocTagNode =
|
|
442
|
-
LastJSDocTagNode =
|
|
430
|
+
FirstLiteralToken = 9,
|
|
431
|
+
LastLiteralToken = 15,
|
|
432
|
+
FirstTemplateToken = 15,
|
|
433
|
+
LastTemplateToken = 18,
|
|
434
|
+
FirstBinaryOperator = 30,
|
|
435
|
+
LastBinaryOperator = 79,
|
|
436
|
+
FirstStatement = 242,
|
|
437
|
+
LastStatement = 258,
|
|
438
|
+
FirstNode = 165,
|
|
439
|
+
FirstJSDocNode = 315,
|
|
440
|
+
LastJSDocNode = 356,
|
|
441
|
+
FirstJSDocTagNode = 333,
|
|
442
|
+
LastJSDocTagNode = 356
|
|
443
443
|
}
|
|
444
444
|
type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
445
445
|
type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
@@ -550,7 +550,7 @@ declare namespace ts {
|
|
|
550
550
|
interface FlowContainer extends Node {
|
|
551
551
|
_flowContainerBrand: any;
|
|
552
552
|
}
|
|
553
|
-
type HasJSDoc = AccessorDeclaration | ArrowFunction | BinaryExpression | Block | BreakStatement | CallSignatureDeclaration | CaseClause | ClassLikeDeclaration | ClassStaticBlockDeclaration | ConstructorDeclaration | ConstructorTypeNode | ConstructSignatureDeclaration | ContinueStatement | DebuggerStatement | DoStatement | ElementAccessExpression | EmptyStatement | EndOfFileToken | EnumDeclaration | EnumMember | ExportAssignment | ExportDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | FunctionTypeNode | Identifier | IfStatement | ImportDeclaration | ImportEqualsDeclaration | IndexSignatureDeclaration | InterfaceDeclaration | JSDocFunctionType | JSDocSignature | LabeledStatement | MethodDeclaration | MethodSignature | ModuleDeclaration | NamedTupleMember | NamespaceExportDeclaration | ObjectLiteralExpression | ParameterDeclaration | ParenthesizedExpression | PropertyAccessExpression | PropertyAssignment | PropertyDeclaration | PropertySignature | ReturnStatement | ShorthandPropertyAssignment | SpreadAssignment | SwitchStatement | ThrowStatement | TryStatement | TypeAliasDeclaration | TypeParameterDeclaration | VariableDeclaration | VariableStatement | WhileStatement | WithStatement;
|
|
553
|
+
type HasJSDoc = AccessorDeclaration | ArrowFunction | BinaryExpression | Block | BreakStatement | CallSignatureDeclaration | CaseClause | ClassLikeDeclaration | ClassStaticBlockDeclaration | ConstructorDeclaration | ConstructorTypeNode | ConstructSignatureDeclaration | ContinueStatement | DebuggerStatement | DoStatement | ElementAccessExpression | EmptyStatement | EndOfFileToken | EnumDeclaration | EnumMember | ExportAssignment | ExportDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | FunctionTypeNode | Identifier | IfStatement | ImportDeclaration | ImportEqualsDeclaration | IndexSignatureDeclaration | InterfaceDeclaration | JSDocFunctionType | JSDocSignature | LabeledStatement | MethodDeclaration | MethodSignature | ModuleDeclaration | NamedTupleMember | NamespaceExportDeclaration | ObjectLiteralExpression | ParameterDeclaration | ParenthesizedExpression | PropertyAccessExpression | PropertyAssignment | PropertyDeclaration | PropertySignature | ReturnStatement | SemicolonClassElement | ShorthandPropertyAssignment | SpreadAssignment | SwitchStatement | ThrowStatement | TryStatement | TypeAliasDeclaration | TypeParameterDeclaration | VariableDeclaration | VariableStatement | WhileStatement | WithStatement;
|
|
554
554
|
type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType;
|
|
555
555
|
type HasTypeArguments = CallExpression | NewExpression | TaggedTemplateExpression | JsxOpeningElement | JsxSelfClosingElement;
|
|
556
556
|
type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute;
|
|
@@ -644,7 +644,7 @@ declare namespace ts {
|
|
|
644
644
|
type EntityName = Identifier | QualifiedName;
|
|
645
645
|
type PropertyName = Identifier | StringLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier;
|
|
646
646
|
type MemberName = Identifier | PrivateIdentifier;
|
|
647
|
-
type DeclarationName =
|
|
647
|
+
type DeclarationName = PropertyName | JsxAttributeName | StringLiteralLike | ElementAccessExpression | BindingPattern | EntityNameExpression;
|
|
648
648
|
interface Declaration extends Node {
|
|
649
649
|
_declarationBrand: any;
|
|
650
650
|
}
|
|
@@ -829,7 +829,7 @@ declare namespace ts {
|
|
|
829
829
|
readonly body?: FunctionBody | undefined;
|
|
830
830
|
}
|
|
831
831
|
/** For when we encounter a semicolon in a class declaration. ES6 allows these as class elements. */
|
|
832
|
-
interface SemicolonClassElement extends ClassElement {
|
|
832
|
+
interface SemicolonClassElement extends ClassElement, JSDocContainer {
|
|
833
833
|
readonly kind: SyntaxKind.SemicolonClassElement;
|
|
834
834
|
readonly parent: ClassLikeDeclaration;
|
|
835
835
|
}
|
|
@@ -991,7 +991,7 @@ declare namespace ts {
|
|
|
991
991
|
readonly kind: SyntaxKind.StringLiteral;
|
|
992
992
|
}
|
|
993
993
|
type StringLiteralLike = StringLiteral | NoSubstitutionTemplateLiteral;
|
|
994
|
-
type PropertyNameLiteral = Identifier | StringLiteralLike | NumericLiteral;
|
|
994
|
+
type PropertyNameLiteral = Identifier | StringLiteralLike | NumericLiteral | JsxNamespacedName;
|
|
995
995
|
interface TemplateLiteralTypeNode extends TypeNode {
|
|
996
996
|
kind: SyntaxKind.TemplateLiteralType;
|
|
997
997
|
readonly head: TemplateHead;
|
|
@@ -1347,14 +1347,21 @@ declare namespace ts {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
type JsxOpeningLikeElement = JsxSelfClosingElement | JsxOpeningElement;
|
|
1349
1349
|
type JsxAttributeLike = JsxAttribute | JsxSpreadAttribute;
|
|
1350
|
-
type
|
|
1350
|
+
type JsxAttributeName = Identifier | JsxNamespacedName;
|
|
1351
|
+
type JsxTagNameExpression = Identifier | ThisExpression | JsxTagNamePropertyAccess | JsxNamespacedName;
|
|
1351
1352
|
interface JsxTagNamePropertyAccess extends PropertyAccessExpression {
|
|
1352
|
-
readonly expression:
|
|
1353
|
+
readonly expression: Identifier | ThisExpression | JsxTagNamePropertyAccess;
|
|
1353
1354
|
}
|
|
1354
|
-
interface JsxAttributes extends
|
|
1355
|
+
interface JsxAttributes extends PrimaryExpression, Declaration {
|
|
1356
|
+
readonly properties: NodeArray<JsxAttributeLike>;
|
|
1355
1357
|
readonly kind: SyntaxKind.JsxAttributes;
|
|
1356
1358
|
readonly parent: JsxOpeningLikeElement;
|
|
1357
1359
|
}
|
|
1360
|
+
interface JsxNamespacedName extends Node {
|
|
1361
|
+
readonly kind: SyntaxKind.JsxNamespacedName;
|
|
1362
|
+
readonly name: Identifier;
|
|
1363
|
+
readonly namespace: Identifier;
|
|
1364
|
+
}
|
|
1358
1365
|
interface JsxOpeningElement extends Expression {
|
|
1359
1366
|
readonly kind: SyntaxKind.JsxOpeningElement;
|
|
1360
1367
|
readonly parent: JsxElement;
|
|
@@ -1382,15 +1389,16 @@ declare namespace ts {
|
|
|
1382
1389
|
readonly kind: SyntaxKind.JsxClosingFragment;
|
|
1383
1390
|
readonly parent: JsxFragment;
|
|
1384
1391
|
}
|
|
1385
|
-
interface JsxAttribute extends
|
|
1392
|
+
interface JsxAttribute extends Declaration {
|
|
1386
1393
|
readonly kind: SyntaxKind.JsxAttribute;
|
|
1387
1394
|
readonly parent: JsxAttributes;
|
|
1388
|
-
readonly name:
|
|
1395
|
+
readonly name: JsxAttributeName;
|
|
1389
1396
|
readonly initializer?: JsxAttributeValue;
|
|
1390
1397
|
}
|
|
1391
1398
|
type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
|
|
1392
1399
|
interface JsxSpreadAttribute extends ObjectLiteralElement {
|
|
1393
1400
|
readonly kind: SyntaxKind.JsxSpreadAttribute;
|
|
1401
|
+
readonly name: PropertyName;
|
|
1394
1402
|
readonly parent: JsxAttributes;
|
|
1395
1403
|
readonly expression: Expression;
|
|
1396
1404
|
}
|
|
@@ -2426,6 +2434,40 @@ declare namespace ts {
|
|
|
2426
2434
|
getApparentType(type: Type): Type;
|
|
2427
2435
|
getBaseConstraintOfType(type: Type): Type | undefined;
|
|
2428
2436
|
getDefaultFromTypeParameter(type: Type): Type | undefined;
|
|
2437
|
+
/**
|
|
2438
|
+
* Gets the intrinsic `any` type. There are multiple types that act as `any` used internally in the compiler,
|
|
2439
|
+
* so the type returned by this function should not be used in equality checks to determine if another type
|
|
2440
|
+
* is `any`. Instead, use `type.flags & TypeFlags.Any`.
|
|
2441
|
+
*/
|
|
2442
|
+
getAnyType(): Type;
|
|
2443
|
+
getStringType(): Type;
|
|
2444
|
+
getStringLiteralType(value: string): StringLiteralType;
|
|
2445
|
+
getNumberType(): Type;
|
|
2446
|
+
getNumberLiteralType(value: number): NumberLiteralType;
|
|
2447
|
+
getBigIntType(): Type;
|
|
2448
|
+
getBooleanType(): Type;
|
|
2449
|
+
getFalseType(): Type;
|
|
2450
|
+
getTrueType(): Type;
|
|
2451
|
+
getVoidType(): Type;
|
|
2452
|
+
/**
|
|
2453
|
+
* Gets the intrinsic `undefined` type. There are multiple types that act as `undefined` used internally in the compiler
|
|
2454
|
+
* depending on compiler options, so the type returned by this function should not be used in equality checks to determine
|
|
2455
|
+
* if another type is `undefined`. Instead, use `type.flags & TypeFlags.Undefined`.
|
|
2456
|
+
*/
|
|
2457
|
+
getUndefinedType(): Type;
|
|
2458
|
+
/**
|
|
2459
|
+
* Gets the intrinsic `null` type. There are multiple types that act as `null` used internally in the compiler,
|
|
2460
|
+
* so the type returned by this function should not be used in equality checks to determine if another type
|
|
2461
|
+
* is `null`. Instead, use `type.flags & TypeFlags.Null`.
|
|
2462
|
+
*/
|
|
2463
|
+
getNullType(): Type;
|
|
2464
|
+
getESSymbolType(): Type;
|
|
2465
|
+
/**
|
|
2466
|
+
* Gets the intrinsic `never` type. There are multiple types that act as `never` used internally in the compiler,
|
|
2467
|
+
* so the type returned by this function should not be used in equality checks to determine if another type
|
|
2468
|
+
* is `never`. Instead, use `type.flags & TypeFlags.Never`.
|
|
2469
|
+
*/
|
|
2470
|
+
getNeverType(): Type;
|
|
2429
2471
|
/**
|
|
2430
2472
|
* True if this type is the `Array` or `ReadonlyArray` type from lib.d.ts.
|
|
2431
2473
|
* This function will _not_ return true if passed a type which
|
|
@@ -2661,14 +2703,12 @@ declare namespace ts {
|
|
|
2661
2703
|
}) | (void & {
|
|
2662
2704
|
__escapedIdentifier: void;
|
|
2663
2705
|
}) | InternalSymbolName;
|
|
2664
|
-
/**
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
interface UnderscoreEscapedMap<T> extends Map<__String, T> {
|
|
2669
|
-
}
|
|
2706
|
+
/** @deprecated Use ReadonlyMap<__String, T> instead. */
|
|
2707
|
+
type ReadonlyUnderscoreEscapedMap<T> = ReadonlyMap<__String, T>;
|
|
2708
|
+
/** @deprecated Use Map<__String, T> instead. */
|
|
2709
|
+
type UnderscoreEscapedMap<T> = Map<__String, T>;
|
|
2670
2710
|
/** SymbolTable based on ES6 Map interface. */
|
|
2671
|
-
type SymbolTable =
|
|
2711
|
+
type SymbolTable = Map<__String, Symbol>;
|
|
2672
2712
|
enum TypeFlags {
|
|
2673
2713
|
Any = 1,
|
|
2674
2714
|
Unknown = 2,
|
|
@@ -3459,9 +3499,8 @@ declare namespace ts {
|
|
|
3459
3499
|
ReuseTempVariableScope = 1048576,
|
|
3460
3500
|
CustomPrologue = 2097152,
|
|
3461
3501
|
NoHoisting = 4194304,
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
NoAsciiEscaping = 33554432
|
|
3502
|
+
Iterator = 8388608,
|
|
3503
|
+
NoAsciiEscaping = 16777216
|
|
3465
3504
|
}
|
|
3466
3505
|
interface EmitHelperBase {
|
|
3467
3506
|
readonly name: string;
|
|
@@ -3895,14 +3934,16 @@ declare namespace ts {
|
|
|
3895
3934
|
createJsxOpeningFragment(): JsxOpeningFragment;
|
|
3896
3935
|
createJsxJsxClosingFragment(): JsxClosingFragment;
|
|
3897
3936
|
updateJsxFragment(node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment): JsxFragment;
|
|
3898
|
-
createJsxAttribute(name:
|
|
3899
|
-
updateJsxAttribute(node: JsxAttribute, name:
|
|
3937
|
+
createJsxAttribute(name: JsxAttributeName, initializer: JsxAttributeValue | undefined): JsxAttribute;
|
|
3938
|
+
updateJsxAttribute(node: JsxAttribute, name: JsxAttributeName, initializer: JsxAttributeValue | undefined): JsxAttribute;
|
|
3900
3939
|
createJsxAttributes(properties: readonly JsxAttributeLike[]): JsxAttributes;
|
|
3901
3940
|
updateJsxAttributes(node: JsxAttributes, properties: readonly JsxAttributeLike[]): JsxAttributes;
|
|
3902
3941
|
createJsxSpreadAttribute(expression: Expression): JsxSpreadAttribute;
|
|
3903
3942
|
updateJsxSpreadAttribute(node: JsxSpreadAttribute, expression: Expression): JsxSpreadAttribute;
|
|
3904
3943
|
createJsxExpression(dotDotDotToken: DotDotDotToken | undefined, expression: Expression | undefined): JsxExpression;
|
|
3905
3944
|
updateJsxExpression(node: JsxExpression, expression: Expression | undefined): JsxExpression;
|
|
3945
|
+
createJsxNamespacedName(namespace: Identifier, name: Identifier): JsxNamespacedName;
|
|
3946
|
+
updateJsxNamespacedName(node: JsxNamespacedName, namespace: Identifier, name: Identifier): JsxNamespacedName;
|
|
3906
3947
|
createCaseClause(expression: Expression, statements: readonly Statement[]): CaseClause;
|
|
3907
3948
|
updateCaseClause(node: CaseClause, expression: Expression, statements: readonly Statement[]): CaseClause;
|
|
3908
3949
|
createDefaultClause(statements: readonly Statement[]): DefaultClause;
|
|
@@ -4184,7 +4225,6 @@ declare namespace ts {
|
|
|
4184
4225
|
noEmitHelpers?: boolean;
|
|
4185
4226
|
}
|
|
4186
4227
|
interface GetEffectiveTypeRootsHost {
|
|
4187
|
-
directoryExists?(directoryName: string): boolean;
|
|
4188
4228
|
getCurrentDirectory?(): string;
|
|
4189
4229
|
}
|
|
4190
4230
|
interface TextSpan {
|
|
@@ -4386,11 +4426,17 @@ declare namespace ts {
|
|
|
4386
4426
|
function isIdentifierStart(ch: number, languageVersion: ScriptTarget | undefined): boolean;
|
|
4387
4427
|
function isIdentifierPart(ch: number, languageVersion: ScriptTarget | undefined, identifierVariant?: LanguageVariant): boolean;
|
|
4388
4428
|
function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean, languageVariant?: LanguageVariant, textInitial?: string, onError?: ErrorCallback, start?: number, length?: number): Scanner;
|
|
4389
|
-
type ErrorCallback = (message: DiagnosticMessage, length: number) => void;
|
|
4429
|
+
type ErrorCallback = (message: DiagnosticMessage, length: number, arg0?: any) => void;
|
|
4390
4430
|
interface Scanner {
|
|
4431
|
+
/** @deprecated use {@link getTokenFullStart} */
|
|
4391
4432
|
getStartPos(): number;
|
|
4392
4433
|
getToken(): SyntaxKind;
|
|
4434
|
+
getTokenFullStart(): number;
|
|
4435
|
+
getTokenStart(): number;
|
|
4436
|
+
getTokenEnd(): number;
|
|
4437
|
+
/** @deprecated use {@link getTokenEnd} */
|
|
4393
4438
|
getTextPos(): number;
|
|
4439
|
+
/** @deprecated use {@link getTokenStart} */
|
|
4394
4440
|
getTokenPos(): number;
|
|
4395
4441
|
getTokenText(): string;
|
|
4396
4442
|
getTokenValue(): string;
|
|
@@ -4404,6 +4450,7 @@ declare namespace ts {
|
|
|
4404
4450
|
reScanSlashToken(): SyntaxKind;
|
|
4405
4451
|
reScanAsteriskEqualsToken(): SyntaxKind;
|
|
4406
4452
|
reScanTemplateToken(isTaggedTemplate: boolean): SyntaxKind;
|
|
4453
|
+
/** @deprecated use {@link reScanTemplateToken}(false) */
|
|
4407
4454
|
reScanTemplateHeadOrNoSubstitutionTemplate(): SyntaxKind;
|
|
4408
4455
|
scanJsxIdentifier(): SyntaxKind;
|
|
4409
4456
|
scanJsxAttributeValue(): SyntaxKind;
|
|
@@ -4421,7 +4468,9 @@ declare namespace ts {
|
|
|
4421
4468
|
setOnError(onError: ErrorCallback | undefined): void;
|
|
4422
4469
|
setScriptTarget(scriptTarget: ScriptTarget): void;
|
|
4423
4470
|
setLanguageVariant(variant: LanguageVariant): void;
|
|
4471
|
+
/** @deprecated use {@link resetTokenState} */
|
|
4424
4472
|
setTextPos(textPos: number): void;
|
|
4473
|
+
resetTokenState(pos: number): void;
|
|
4425
4474
|
lookAhead<T>(callback: () => T): T;
|
|
4426
4475
|
scanRange<T>(start: number, length: number, callback: () => T): T;
|
|
4427
4476
|
tryScan<T>(callback: () => T): T;
|
|
@@ -4722,6 +4771,26 @@ declare namespace ts {
|
|
|
4722
4771
|
parent: ConstructorDeclaration;
|
|
4723
4772
|
name: Identifier;
|
|
4724
4773
|
};
|
|
4774
|
+
/**
|
|
4775
|
+
* This function checks multiple locations for JSDoc comments that apply to a host node.
|
|
4776
|
+
* At each location, the whole comment may apply to the node, or only a specific tag in
|
|
4777
|
+
* the comment. In the first case, location adds the entire {@link JSDoc} object. In the
|
|
4778
|
+
* second case, it adds the applicable {@link JSDocTag}.
|
|
4779
|
+
*
|
|
4780
|
+
* For example, a JSDoc comment before a parameter adds the entire {@link JSDoc}. But a
|
|
4781
|
+
* `@param` tag on the parent function only adds the {@link JSDocTag} for the `@param`.
|
|
4782
|
+
*
|
|
4783
|
+
* ```ts
|
|
4784
|
+
* /** JSDoc will be returned for `a` *\/
|
|
4785
|
+
* const a = 0
|
|
4786
|
+
* /**
|
|
4787
|
+
* * Entire JSDoc will be returned for `b`
|
|
4788
|
+
* * @param c JSDocTag will be returned for `c`
|
|
4789
|
+
* *\/
|
|
4790
|
+
* function b(/** JSDoc will be returned for `c` *\/ c) {}
|
|
4791
|
+
* ```
|
|
4792
|
+
*/
|
|
4793
|
+
function getJSDocCommentsAndTags(hostNode: Node): readonly (JSDoc | JSDocTag)[];
|
|
4725
4794
|
/** @deprecated */
|
|
4726
4795
|
function createUnparsedSourceFile(text: string): UnparsedSource;
|
|
4727
4796
|
/** @deprecated */
|
|
@@ -4965,6 +5034,7 @@ declare namespace ts {
|
|
|
4965
5034
|
function isJsxAttributes(node: Node): node is JsxAttributes;
|
|
4966
5035
|
function isJsxSpreadAttribute(node: Node): node is JsxSpreadAttribute;
|
|
4967
5036
|
function isJsxExpression(node: Node): node is JsxExpression;
|
|
5037
|
+
function isJsxNamespacedName(node: Node): node is JsxNamespacedName;
|
|
4968
5038
|
function isCaseClause(node: Node): node is CaseClause;
|
|
4969
5039
|
function isDefaultClause(node: Node): node is DefaultClause;
|
|
4970
5040
|
function isHeritageClause(node: Node): node is HeritageClause;
|
|
@@ -5169,7 +5239,7 @@ declare namespace ts {
|
|
|
5169
5239
|
* this list is only the set of defaults that are implicitly included.
|
|
5170
5240
|
*/
|
|
5171
5241
|
function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[];
|
|
5172
|
-
function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache;
|
|
5242
|
+
function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): ModuleResolutionCache;
|
|
5173
5243
|
function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache;
|
|
5174
5244
|
function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
5175
5245
|
function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations;
|
|
@@ -5358,7 +5428,7 @@ declare namespace ts {
|
|
|
5358
5428
|
* Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly
|
|
5359
5429
|
* provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.
|
|
5360
5430
|
*/
|
|
5361
|
-
function getModeForFileReference(ref: FileReference | string, containingFileMode: ResolutionMode):
|
|
5431
|
+
function getModeForFileReference(ref: FileReference | string, containingFileMode: ResolutionMode): ResolutionMode;
|
|
5362
5432
|
/**
|
|
5363
5433
|
* Calculates the final resolution mode for an import at some index within a file's imports list. This is generally the explicitly
|
|
5364
5434
|
* defined mode of the import if provided, or, if not, the mode of the containing file (with some exceptions: import=require is always commonjs, dynamic import is always esm).
|
|
@@ -5378,7 +5448,7 @@ declare namespace ts {
|
|
|
5378
5448
|
*/
|
|
5379
5449
|
function getModeForUsageLocation(file: {
|
|
5380
5450
|
impliedNodeFormat?: ResolutionMode;
|
|
5381
|
-
}, usage: StringLiteralLike):
|
|
5451
|
+
}, usage: StringLiteralLike): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
|
5382
5452
|
function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
|
|
5383
5453
|
/**
|
|
5384
5454
|
* A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
|
|
@@ -5559,8 +5629,8 @@ declare namespace ts {
|
|
|
5559
5629
|
*/
|
|
5560
5630
|
emitNextAffectedFile(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): AffectedFileResult<EmitResult>;
|
|
5561
5631
|
}
|
|
5562
|
-
function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost):
|
|
5563
|
-
function createIncrementalCompilerHost(options: CompilerOptions, system?:
|
|
5632
|
+
function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined;
|
|
5633
|
+
function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost;
|
|
5564
5634
|
function createIncrementalProgram<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>({ rootNames, options, configFileParsingDiagnostics, projectReferences, host, createProgram }: IncrementalProgramOptions<T>): T;
|
|
5565
5635
|
/**
|
|
5566
5636
|
* Create the watch compiler host for either configFile or fileNames and its options
|
|
@@ -5716,8 +5786,8 @@ declare namespace ts {
|
|
|
5716
5786
|
* Create a function that reports watch status by writing to the system and handles the formating of the diagnostic
|
|
5717
5787
|
*/
|
|
5718
5788
|
function createBuilderStatusReporter(system: System, pretty?: boolean): DiagnosticReporter;
|
|
5719
|
-
function createSolutionBuilderHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?:
|
|
5720
|
-
function createSolutionBuilderWithWatchHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?:
|
|
5789
|
+
function createSolutionBuilderHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportErrorSummary?: ReportEmitErrorSummary): SolutionBuilderHost<T>;
|
|
5790
|
+
function createSolutionBuilderWithWatchHost<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>(system?: System, createProgram?: CreateProgram<T>, reportDiagnostic?: DiagnosticReporter, reportSolutionBuilderStatus?: DiagnosticReporter, reportWatchStatus?: WatchStatusReporter): SolutionBuilderWithWatchHost<T>;
|
|
5721
5791
|
function createSolutionBuilder<T extends BuilderProgram>(host: SolutionBuilderHost<T>, rootNames: readonly string[], defaultOptions: BuildOptions): SolutionBuilder<T>;
|
|
5722
5792
|
function createSolutionBuilderWithWatch<T extends BuilderProgram>(host: SolutionBuilderWithWatchHost<T>, rootNames: readonly string[], defaultOptions: BuildOptions, baseWatchOptions?: WatchOptions): SolutionBuilder<T>;
|
|
5723
5793
|
interface BuildOptions {
|
|
@@ -5807,6 +5877,14 @@ declare namespace ts {
|
|
|
5807
5877
|
emit(writeFile?: WriteFileCallback, customTransformers?: CustomTransformers): EmitResult | BuildInvalidedProject<T> | undefined;
|
|
5808
5878
|
}
|
|
5809
5879
|
type InvalidatedProject<T extends BuilderProgram> = UpdateOutputFileStampsProject | BuildInvalidedProject<T> | UpdateBundleProject<T>;
|
|
5880
|
+
namespace JsTyping {
|
|
5881
|
+
interface TypingResolutionHost {
|
|
5882
|
+
directoryExists(path: string): boolean;
|
|
5883
|
+
fileExists(fileName: string): boolean;
|
|
5884
|
+
readFile(path: string, encoding?: string): string | undefined;
|
|
5885
|
+
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
|
|
5886
|
+
}
|
|
5887
|
+
}
|
|
5810
5888
|
namespace server {
|
|
5811
5889
|
type ActionSet = "action::set";
|
|
5812
5890
|
type ActionInvalidate = "action::invalidate";
|
|
@@ -5815,8 +5893,9 @@ declare namespace ts {
|
|
|
5815
5893
|
type EventBeginInstallTypes = "event::beginInstallTypes";
|
|
5816
5894
|
type EventEndInstallTypes = "event::endInstallTypes";
|
|
5817
5895
|
type EventInitializationFailed = "event::initializationFailed";
|
|
5896
|
+
type ActionWatchTypingLocations = "action::watchTypingLocations";
|
|
5818
5897
|
interface TypingInstallerResponse {
|
|
5819
|
-
readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed;
|
|
5898
|
+
readonly kind: ActionSet | ActionInvalidate | EventTypesRegistry | ActionPackageInstalled | EventBeginInstallTypes | EventEndInstallTypes | EventInitializationFailed | ActionWatchTypingLocations;
|
|
5820
5899
|
}
|
|
5821
5900
|
interface TypingInstallerRequestWithProjectName {
|
|
5822
5901
|
readonly projectName: string;
|
|
@@ -5825,7 +5904,6 @@ declare namespace ts {
|
|
|
5825
5904
|
readonly fileNames: string[];
|
|
5826
5905
|
readonly projectRootPath: Path;
|
|
5827
5906
|
readonly compilerOptions: CompilerOptions;
|
|
5828
|
-
readonly watchOptions?: WatchOptions;
|
|
5829
5907
|
readonly typeAcquisition: TypeAcquisition;
|
|
5830
5908
|
readonly unresolvedImports: SortedReadonlyArray<string>;
|
|
5831
5909
|
readonly cachePath?: string;
|
|
@@ -5872,6 +5950,12 @@ declare namespace ts {
|
|
|
5872
5950
|
readonly kind: EventEndInstallTypes;
|
|
5873
5951
|
readonly installSuccess: boolean;
|
|
5874
5952
|
}
|
|
5953
|
+
interface InstallTypingHost extends JsTyping.TypingResolutionHost {
|
|
5954
|
+
useCaseSensitiveFileNames: boolean;
|
|
5955
|
+
writeFile(path: string, content: string): void;
|
|
5956
|
+
createDirectory(path: string): void;
|
|
5957
|
+
getCurrentDirectory?(): string;
|
|
5958
|
+
}
|
|
5875
5959
|
interface SetTypings extends ProjectResponse {
|
|
5876
5960
|
readonly typeAcquisition: TypeAcquisition;
|
|
5877
5961
|
readonly compilerOptions: CompilerOptions;
|
|
@@ -5879,6 +5963,11 @@ declare namespace ts {
|
|
|
5879
5963
|
readonly unresolvedImports: SortedReadonlyArray<string>;
|
|
5880
5964
|
readonly kind: ActionSet;
|
|
5881
5965
|
}
|
|
5966
|
+
interface WatchTypingLocations extends ProjectResponse {
|
|
5967
|
+
/** if files is undefined, retain same set of watchers */
|
|
5968
|
+
readonly files: readonly string[] | undefined;
|
|
5969
|
+
readonly kind: ActionWatchTypingLocations;
|
|
5970
|
+
}
|
|
5882
5971
|
}
|
|
5883
5972
|
function getDefaultFormatCodeSettings(newLineCharacter?: string): FormatCodeSettings;
|
|
5884
5973
|
/**
|
|
@@ -6084,6 +6173,8 @@ declare namespace ts {
|
|
|
6084
6173
|
getRenameInfo(fileName: string, position: number, preferences: UserPreferences): RenameInfo;
|
|
6085
6174
|
/** @deprecated Use the signature with `UserPreferences` instead. */
|
|
6086
6175
|
getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo;
|
|
6176
|
+
findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, preferences: UserPreferences): readonly RenameLocation[] | undefined;
|
|
6177
|
+
/** @deprecated Pass `providePrefixAndSuffixTextForRename` as part of a `UserPreferences` parameter. */
|
|
6087
6178
|
findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): readonly RenameLocation[] | undefined;
|
|
6088
6179
|
getSmartSelectionRange(fileName: string, position: number): SelectionRange;
|
|
6089
6180
|
getDefinitionAtPosition(fileName: string, position: number): readonly DefinitionInfo[] | undefined;
|
|
@@ -6094,8 +6185,6 @@ declare namespace ts {
|
|
|
6094
6185
|
findReferences(fileName: string, position: number): ReferencedSymbol[] | undefined;
|
|
6095
6186
|
getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] | undefined;
|
|
6096
6187
|
getFileReferences(fileName: string): ReferenceEntry[];
|
|
6097
|
-
/** @deprecated */
|
|
6098
|
-
getOccurrencesAtPosition(fileName: string, position: number): readonly ReferenceEntry[] | undefined;
|
|
6099
6188
|
getNavigateToItems(searchValue: string, maxResultCount?: number, fileName?: string, excludeDtsFiles?: boolean): NavigateToItem[];
|
|
6100
6189
|
getNavigationBarItems(fileName: string): NavigationBarItem[];
|
|
6101
6190
|
getNavigationTree(fileName: string): NavigationTree;
|
|
@@ -6117,6 +6206,7 @@ declare namespace ts {
|
|
|
6117
6206
|
* Editors should call this after `>` is typed.
|
|
6118
6207
|
*/
|
|
6119
6208
|
getJsxClosingTagAtPosition(fileName: string, position: number): JsxClosingTagInfo | undefined;
|
|
6209
|
+
getLinkedEditingRangeAtPosition(fileName: string, position: number): LinkedEditingInfo | undefined;
|
|
6120
6210
|
getSpanOfEnclosingComment(fileName: string, position: number, onlyMultiLine: boolean): TextSpan | undefined;
|
|
6121
6211
|
toLineColumnOffset?(fileName: string, position: number): LineAndCharacter;
|
|
6122
6212
|
getCodeFixesAtPosition(fileName: string, start: number, end: number, errorCodes: readonly number[], formatOptions: FormatCodeSettings, preferences: UserPreferences): readonly CodeFixAction[];
|
|
@@ -6130,8 +6220,18 @@ declare namespace ts {
|
|
|
6130
6220
|
applyCodeActionCommand(fileName: string, action: CodeActionCommand[]): Promise<ApplyCodeActionCommandResult[]>;
|
|
6131
6221
|
/** @deprecated `fileName` will be ignored */
|
|
6132
6222
|
applyCodeActionCommand(fileName: string, action: CodeActionCommand | CodeActionCommand[]): Promise<ApplyCodeActionCommandResult | ApplyCodeActionCommandResult[]>;
|
|
6133
|
-
|
|
6134
|
-
|
|
6223
|
+
/**
|
|
6224
|
+
* @param includeInteractiveActions Include refactor actions that require additional arguments to be
|
|
6225
|
+
* passed when calling `getEditsForRefactor`. When true, clients should inspect the `isInteractive`
|
|
6226
|
+
* property of each returned `RefactorActionInfo` and ensure they are able to collect the appropriate
|
|
6227
|
+
* arguments for any interactive action before offering it.
|
|
6228
|
+
*/
|
|
6229
|
+
getApplicableRefactors(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences | undefined, triggerReason?: RefactorTriggerReason, kind?: string, includeInteractiveActions?: boolean): ApplicableRefactorInfo[];
|
|
6230
|
+
getEditsForRefactor(fileName: string, formatOptions: FormatCodeSettings, positionOrRange: number | TextRange, refactorName: string, actionName: string, preferences: UserPreferences | undefined, interactiveRefactorArguments?: InteractiveRefactorArguments): RefactorEditInfo | undefined;
|
|
6231
|
+
getMoveToRefactoringFileSuggestions(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences | undefined, triggerReason?: RefactorTriggerReason, kind?: string): {
|
|
6232
|
+
newFileName: string;
|
|
6233
|
+
files: string[];
|
|
6234
|
+
};
|
|
6135
6235
|
organizeImports(args: OrganizeImportsArgs, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): readonly FileTextChanges[];
|
|
6136
6236
|
getEditsForFileRename(oldFilePath: string, newFilePath: string, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): readonly FileTextChanges[];
|
|
6137
6237
|
getEmitOutput(fileName: string, emitOnlyDtsFiles?: boolean, forceDtsEmit?: boolean): EmitOutput;
|
|
@@ -6146,6 +6246,10 @@ declare namespace ts {
|
|
|
6146
6246
|
interface JsxClosingTagInfo {
|
|
6147
6247
|
readonly newText: string;
|
|
6148
6248
|
}
|
|
6249
|
+
interface LinkedEditingInfo {
|
|
6250
|
+
readonly ranges: TextSpan[];
|
|
6251
|
+
wordPattern?: string;
|
|
6252
|
+
}
|
|
6149
6253
|
interface CombinedCodeFixScope {
|
|
6150
6254
|
type: "file";
|
|
6151
6255
|
fileName: string;
|
|
@@ -6398,6 +6502,11 @@ declare namespace ts {
|
|
|
6398
6502
|
* The hierarchical dotted name of the refactor action.
|
|
6399
6503
|
*/
|
|
6400
6504
|
kind?: string;
|
|
6505
|
+
/**
|
|
6506
|
+
* Indicates that the action requires additional arguments to be passed
|
|
6507
|
+
* when calling `getEditsForRefactor`.
|
|
6508
|
+
*/
|
|
6509
|
+
isInteractive?: boolean;
|
|
6401
6510
|
}
|
|
6402
6511
|
/**
|
|
6403
6512
|
* A set of edits to make in response to a refactor action, plus an optional
|
|
@@ -6408,6 +6517,7 @@ declare namespace ts {
|
|
|
6408
6517
|
renameFilename?: string;
|
|
6409
6518
|
renameLocation?: number;
|
|
6410
6519
|
commands?: CodeActionCommand[];
|
|
6520
|
+
notApplicableReason?: string;
|
|
6411
6521
|
}
|
|
6412
6522
|
type RefactorTriggerReason = "implicit" | "invoked";
|
|
6413
6523
|
interface TextInsertion {
|
|
@@ -6534,6 +6644,7 @@ declare namespace ts {
|
|
|
6534
6644
|
readonly insertSpaceBeforeTypeAnnotation?: boolean;
|
|
6535
6645
|
readonly indentMultiLineObjectLiteralBeginningOnBlankLine?: boolean;
|
|
6536
6646
|
readonly semicolons?: SemicolonPreference;
|
|
6647
|
+
readonly indentSwitchCase?: boolean;
|
|
6537
6648
|
}
|
|
6538
6649
|
interface DefinitionInfo extends DocumentSpan {
|
|
6539
6650
|
kind: ScriptElementKind;
|
|
@@ -6629,6 +6740,9 @@ declare namespace ts {
|
|
|
6629
6740
|
interface DocCommentTemplateOptions {
|
|
6630
6741
|
readonly generateReturnInDocTemplate?: boolean;
|
|
6631
6742
|
}
|
|
6743
|
+
interface InteractiveRefactorArguments {
|
|
6744
|
+
targetFile: string;
|
|
6745
|
+
}
|
|
6632
6746
|
interface SignatureHelpParameter {
|
|
6633
6747
|
name: string;
|
|
6634
6748
|
documentation: SymbolDisplayPart[];
|