typescript 5.0.0-dev.20230119 → 5.0.0-dev.20230120
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/lib.decorators.d.ts +357 -0
- package/lib/lib.decorators.legacy.d.ts +24 -0
- package/lib/lib.es5.d.ts +3 -12
- package/lib/tsc.js +4902 -1603
- package/lib/tsserver.js +5708 -2186
- package/lib/tsserverlibrary.d.ts +106 -40
- package/lib/tsserverlibrary.js +5714 -2231
- package/lib/typescript.d.ts +52 -37
- package/lib/typescript.js +5497 -2052
- package/lib/typingsInstaller.js +243 -277
- package/package.json +1 -1
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -87,9 +87,6 @@ declare namespace ts {
|
|
|
87
87
|
readonly kind: ActionSet;
|
|
88
88
|
}
|
|
89
89
|
namespace protocol {
|
|
90
|
-
/**
|
|
91
|
-
* Declaration module describing the TypeScript Server protocol
|
|
92
|
-
*/
|
|
93
90
|
enum CommandTypes {
|
|
94
91
|
JsxClosingTag = "jsxClosingTag",
|
|
95
92
|
Brace = "brace",
|
|
@@ -2802,7 +2799,59 @@ declare namespace ts {
|
|
|
2802
2799
|
readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
|
|
2803
2800
|
readonly includeInlayEnumMemberValueHints?: boolean;
|
|
2804
2801
|
readonly autoImportFileExcludePatterns?: string[];
|
|
2802
|
+
/**
|
|
2803
|
+
* Indicates whether imports should be organized in a case-insensitive manner.
|
|
2804
|
+
*/
|
|
2805
2805
|
readonly organizeImportsIgnoreCase?: "auto" | boolean;
|
|
2806
|
+
/**
|
|
2807
|
+
* Indicates whether imports should be organized via an "ordinal" (binary) comparison using the numeric value
|
|
2808
|
+
* of their code points, or via "unicode" collation (via the
|
|
2809
|
+
* [Unicode Collation Algorithm](https://unicode.org/reports/tr10/#Scope)) using rules associated with the locale
|
|
2810
|
+
* specified in {@link organizeImportsCollationLocale}.
|
|
2811
|
+
*
|
|
2812
|
+
* Default: `"ordinal"`.
|
|
2813
|
+
*/
|
|
2814
|
+
readonly organizeImportsCollation?: "ordinal" | "unicode";
|
|
2815
|
+
/**
|
|
2816
|
+
* Indicates the locale to use for "unicode" collation. If not specified, the locale `"en"` is used as an invariant
|
|
2817
|
+
* for the sake of consistent sorting. Use `"auto"` to use the detected UI locale.
|
|
2818
|
+
*
|
|
2819
|
+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
|
|
2820
|
+
*
|
|
2821
|
+
* Default: `"en"`
|
|
2822
|
+
*/
|
|
2823
|
+
readonly organizeImportsCollationLocale?: string;
|
|
2824
|
+
/**
|
|
2825
|
+
* Indicates whether numeric collation should be used for digit sequences in strings. When `true`, will collate
|
|
2826
|
+
* strings such that `a1z < a2z < a100z`. When `false`, will collate strings such that `a1z < a100z < a2z`.
|
|
2827
|
+
*
|
|
2828
|
+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
|
|
2829
|
+
*
|
|
2830
|
+
* Default: `false`
|
|
2831
|
+
*/
|
|
2832
|
+
readonly organizeImportsNumericCollation?: boolean;
|
|
2833
|
+
/**
|
|
2834
|
+
* Indicates whether accents and other diacritic marks are considered unequal for the purpose of collation. When
|
|
2835
|
+
* `true`, characters with accents and other diacritics will be collated in the order defined by the locale specified
|
|
2836
|
+
* in {@link organizeImportsCollationLocale}.
|
|
2837
|
+
*
|
|
2838
|
+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`.
|
|
2839
|
+
*
|
|
2840
|
+
* Default: `true`
|
|
2841
|
+
*/
|
|
2842
|
+
readonly organizeImportsAccentCollation?: boolean;
|
|
2843
|
+
/**
|
|
2844
|
+
* Indicates whether upper case or lower case should sort first. When `false`, the default order for the locale
|
|
2845
|
+
* specified in {@link organizeImportsCollationLocale} is used.
|
|
2846
|
+
*
|
|
2847
|
+
* This preference is ignored if {@link organizeImportsCollation} is not `"unicode"`. This preference is also
|
|
2848
|
+
* ignored if we are using case-insensitive sorting, which occurs when {@link organizeImportsIgnoreCase} is `true`,
|
|
2849
|
+
* or if {@link organizeImportsIgnoreCase} is `"auto"` and the auto-detected case sensitivity is determined to be
|
|
2850
|
+
* case-insensitive.
|
|
2851
|
+
*
|
|
2852
|
+
* Default: `false`
|
|
2853
|
+
*/
|
|
2854
|
+
readonly organizeImportsCaseFirst?: "upper" | "lower" | false;
|
|
2806
2855
|
/**
|
|
2807
2856
|
* Indicates whether {@link ReferencesResponseItem.lineText} is supported.
|
|
2808
2857
|
*/
|
|
@@ -3739,7 +3788,9 @@ declare namespace ts {
|
|
|
3739
3788
|
fileName: NormalizedPath;
|
|
3740
3789
|
project: Project;
|
|
3741
3790
|
}
|
|
3791
|
+
/** @deprecated use ts.server.protocol.CommandTypes */
|
|
3742
3792
|
type CommandNames = protocol.CommandTypes;
|
|
3793
|
+
/** @deprecated use ts.server.protocol.CommandTypes */
|
|
3743
3794
|
const CommandNames: any;
|
|
3744
3795
|
type Event = <T extends object>(body: T, eventName: string) => void;
|
|
3745
3796
|
interface EventSender {
|
|
@@ -4385,7 +4436,7 @@ declare namespace ts {
|
|
|
4385
4436
|
type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
4386
4437
|
type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
4387
4438
|
type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
|
|
4388
|
-
type PunctuationSyntaxKind = SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken;
|
|
4439
|
+
type PunctuationSyntaxKind = SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.AmpersandAmpersandEqualsToken | SyntaxKind.BarBarToken | SyntaxKind.BarBarEqualsToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.QuestionQuestionEqualsToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken;
|
|
4389
4440
|
type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
|
|
4390
4441
|
type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.InKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword;
|
|
4391
4442
|
type KeywordTypeSyntaxKind = SyntaxKind.AnyKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VoidKeyword;
|
|
@@ -4537,6 +4588,9 @@ declare namespace ts {
|
|
|
4537
4588
|
type ExclamationToken = PunctuationToken<SyntaxKind.ExclamationToken>;
|
|
4538
4589
|
type ColonToken = PunctuationToken<SyntaxKind.ColonToken>;
|
|
4539
4590
|
type EqualsToken = PunctuationToken<SyntaxKind.EqualsToken>;
|
|
4591
|
+
type AmpersandAmpersandEqualsToken = PunctuationToken<SyntaxKind.AmpersandAmpersandEqualsToken>;
|
|
4592
|
+
type BarBarEqualsToken = PunctuationToken<SyntaxKind.BarBarEqualsToken>;
|
|
4593
|
+
type QuestionQuestionEqualsToken = PunctuationToken<SyntaxKind.QuestionQuestionEqualsToken>;
|
|
4540
4594
|
type AsteriskToken = PunctuationToken<SyntaxKind.AsteriskToken>;
|
|
4541
4595
|
type EqualsGreaterThanToken = PunctuationToken<SyntaxKind.EqualsGreaterThanToken>;
|
|
4542
4596
|
type PlusToken = PunctuationToken<SyntaxKind.PlusToken>;
|
|
@@ -4747,7 +4801,7 @@ declare namespace ts {
|
|
|
4747
4801
|
}
|
|
4748
4802
|
interface ShorthandPropertyAssignment {
|
|
4749
4803
|
/** @deprecated A shorthand property assignment cannot have modifiers */
|
|
4750
|
-
readonly modifiers?: NodeArray<
|
|
4804
|
+
readonly modifiers?: NodeArray<ModifierLike> | undefined;
|
|
4751
4805
|
/** @deprecated A shorthand property assignment cannot have a question token */
|
|
4752
4806
|
readonly questionToken?: QuestionToken | undefined;
|
|
4753
4807
|
/** @deprecated A shorthand property assignment cannot have an exclamation token */
|
|
@@ -4791,7 +4845,7 @@ declare namespace ts {
|
|
|
4791
4845
|
type FunctionLike = SignatureDeclaration;
|
|
4792
4846
|
interface FunctionDeclaration extends FunctionLikeDeclarationBase, DeclarationStatement, LocalsContainer {
|
|
4793
4847
|
readonly kind: SyntaxKind.FunctionDeclaration;
|
|
4794
|
-
readonly modifiers?: NodeArray<
|
|
4848
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
4795
4849
|
readonly name?: Identifier;
|
|
4796
4850
|
readonly body?: FunctionBody;
|
|
4797
4851
|
}
|
|
@@ -4811,7 +4865,7 @@ declare namespace ts {
|
|
|
4811
4865
|
interface ConstructorDeclaration extends FunctionLikeDeclarationBase, ClassElement, JSDocContainer, LocalsContainer {
|
|
4812
4866
|
readonly kind: SyntaxKind.Constructor;
|
|
4813
4867
|
readonly parent: ClassLikeDeclaration;
|
|
4814
|
-
readonly modifiers?: NodeArray<
|
|
4868
|
+
readonly modifiers?: NodeArray<ModifierLike> | undefined;
|
|
4815
4869
|
readonly body?: FunctionBody | undefined;
|
|
4816
4870
|
}
|
|
4817
4871
|
/** For when we encounter a semicolon in a class declaration. ES6 allows these as class elements. */
|
|
@@ -4837,7 +4891,7 @@ declare namespace ts {
|
|
|
4837
4891
|
interface IndexSignatureDeclaration extends SignatureDeclarationBase, ClassElement, TypeElement, LocalsContainer {
|
|
4838
4892
|
readonly kind: SyntaxKind.IndexSignature;
|
|
4839
4893
|
readonly parent: ObjectTypeDeclaration;
|
|
4840
|
-
readonly modifiers?: NodeArray<
|
|
4894
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
4841
4895
|
readonly type: TypeNode;
|
|
4842
4896
|
}
|
|
4843
4897
|
interface ClassStaticBlockDeclaration extends ClassElement, JSDocContainer, LocalsContainer {
|
|
@@ -5420,7 +5474,7 @@ declare namespace ts {
|
|
|
5420
5474
|
interface DebuggerStatement extends Statement, FlowContainer {
|
|
5421
5475
|
readonly kind: SyntaxKind.DebuggerStatement;
|
|
5422
5476
|
}
|
|
5423
|
-
interface MissingDeclaration extends DeclarationStatement {
|
|
5477
|
+
interface MissingDeclaration extends DeclarationStatement, PrimaryExpression {
|
|
5424
5478
|
readonly kind: SyntaxKind.MissingDeclaration;
|
|
5425
5479
|
readonly name?: Identifier;
|
|
5426
5480
|
}
|
|
@@ -5431,7 +5485,7 @@ declare namespace ts {
|
|
|
5431
5485
|
}
|
|
5432
5486
|
interface VariableStatement extends Statement, FlowContainer {
|
|
5433
5487
|
readonly kind: SyntaxKind.VariableStatement;
|
|
5434
|
-
readonly modifiers?: NodeArray<
|
|
5488
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
5435
5489
|
readonly declarationList: VariableDeclarationList;
|
|
5436
5490
|
}
|
|
5437
5491
|
interface ExpressionStatement extends Statement, FlowContainer {
|
|
@@ -5568,7 +5622,7 @@ declare namespace ts {
|
|
|
5568
5622
|
}
|
|
5569
5623
|
interface InterfaceDeclaration extends DeclarationStatement, JSDocContainer {
|
|
5570
5624
|
readonly kind: SyntaxKind.InterfaceDeclaration;
|
|
5571
|
-
readonly modifiers?: NodeArray<
|
|
5625
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
5572
5626
|
readonly name: Identifier;
|
|
5573
5627
|
readonly typeParameters?: NodeArray<TypeParameterDeclaration>;
|
|
5574
5628
|
readonly heritageClauses?: NodeArray<HeritageClause>;
|
|
@@ -5582,7 +5636,7 @@ declare namespace ts {
|
|
|
5582
5636
|
}
|
|
5583
5637
|
interface TypeAliasDeclaration extends DeclarationStatement, JSDocContainer, LocalsContainer {
|
|
5584
5638
|
readonly kind: SyntaxKind.TypeAliasDeclaration;
|
|
5585
|
-
readonly modifiers?: NodeArray<
|
|
5639
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
5586
5640
|
readonly name: Identifier;
|
|
5587
5641
|
readonly typeParameters?: NodeArray<TypeParameterDeclaration>;
|
|
5588
5642
|
readonly type: TypeNode;
|
|
@@ -5595,7 +5649,7 @@ declare namespace ts {
|
|
|
5595
5649
|
}
|
|
5596
5650
|
interface EnumDeclaration extends DeclarationStatement, JSDocContainer {
|
|
5597
5651
|
readonly kind: SyntaxKind.EnumDeclaration;
|
|
5598
|
-
readonly modifiers?: NodeArray<
|
|
5652
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
5599
5653
|
readonly name: Identifier;
|
|
5600
5654
|
readonly members: NodeArray<EnumMember>;
|
|
5601
5655
|
}
|
|
@@ -5604,7 +5658,7 @@ declare namespace ts {
|
|
|
5604
5658
|
interface ModuleDeclaration extends DeclarationStatement, JSDocContainer, LocalsContainer {
|
|
5605
5659
|
readonly kind: SyntaxKind.ModuleDeclaration;
|
|
5606
5660
|
readonly parent: ModuleBody | SourceFile;
|
|
5607
|
-
readonly modifiers?: NodeArray<
|
|
5661
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
5608
5662
|
readonly name: ModuleName;
|
|
5609
5663
|
readonly body?: ModuleBody | JSDocNamespaceDeclaration;
|
|
5610
5664
|
}
|
|
@@ -5632,7 +5686,7 @@ declare namespace ts {
|
|
|
5632
5686
|
interface ImportEqualsDeclaration extends DeclarationStatement, JSDocContainer {
|
|
5633
5687
|
readonly kind: SyntaxKind.ImportEqualsDeclaration;
|
|
5634
5688
|
readonly parent: SourceFile | ModuleBlock;
|
|
5635
|
-
readonly modifiers?: NodeArray<
|
|
5689
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
5636
5690
|
readonly name: Identifier;
|
|
5637
5691
|
readonly isTypeOnly: boolean;
|
|
5638
5692
|
readonly moduleReference: ModuleReference;
|
|
@@ -5645,7 +5699,7 @@ declare namespace ts {
|
|
|
5645
5699
|
interface ImportDeclaration extends Statement {
|
|
5646
5700
|
readonly kind: SyntaxKind.ImportDeclaration;
|
|
5647
5701
|
readonly parent: SourceFile | ModuleBlock;
|
|
5648
|
-
readonly modifiers?: NodeArray<
|
|
5702
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
5649
5703
|
readonly importClause?: ImportClause;
|
|
5650
5704
|
/** If this is not a StringLiteral it will be a grammar error. */
|
|
5651
5705
|
readonly moduleSpecifier: Expression;
|
|
@@ -5690,7 +5744,7 @@ declare namespace ts {
|
|
|
5690
5744
|
interface ExportDeclaration extends DeclarationStatement, JSDocContainer {
|
|
5691
5745
|
readonly kind: SyntaxKind.ExportDeclaration;
|
|
5692
5746
|
readonly parent: SourceFile | ModuleBlock;
|
|
5693
|
-
readonly modifiers?: NodeArray<
|
|
5747
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
5694
5748
|
readonly isTypeOnly: boolean;
|
|
5695
5749
|
/** Will not be assigned in the case of `export * from "foo";` */
|
|
5696
5750
|
readonly exportClause?: NamedExportBindings;
|
|
@@ -5758,7 +5812,7 @@ declare namespace ts {
|
|
|
5758
5812
|
interface ExportAssignment extends DeclarationStatement, JSDocContainer {
|
|
5759
5813
|
readonly kind: SyntaxKind.ExportAssignment;
|
|
5760
5814
|
readonly parent: SourceFile;
|
|
5761
|
-
readonly modifiers?: NodeArray<
|
|
5815
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
5762
5816
|
readonly isExportEquals?: boolean;
|
|
5763
5817
|
readonly expression: Expression;
|
|
5764
5818
|
}
|
|
@@ -7131,6 +7185,7 @@ declare namespace ts {
|
|
|
7131
7185
|
types?: string[];
|
|
7132
7186
|
/** Paths used to compute primary types search locations */
|
|
7133
7187
|
typeRoots?: string[];
|
|
7188
|
+
verbatimModuleSyntax?: boolean;
|
|
7134
7189
|
esModuleInterop?: boolean;
|
|
7135
7190
|
useDefineForClassFields?: boolean;
|
|
7136
7191
|
[option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined;
|
|
@@ -7525,8 +7580,8 @@ declare namespace ts {
|
|
|
7525
7580
|
updateMethodSignature(node: MethodSignature, modifiers: readonly Modifier[] | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): MethodSignature;
|
|
7526
7581
|
createMethodDeclaration(modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
|
|
7527
7582
|
updateMethodDeclaration(node: MethodDeclaration, modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
|
|
7528
|
-
createConstructorDeclaration(modifiers: readonly
|
|
7529
|
-
updateConstructorDeclaration(node: ConstructorDeclaration, modifiers: readonly
|
|
7583
|
+
createConstructorDeclaration(modifiers: readonly ModifierLike[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7584
|
+
updateConstructorDeclaration(node: ConstructorDeclaration, modifiers: readonly ModifierLike[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7530
7585
|
createGetAccessorDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7531
7586
|
updateGetAccessorDeclaration(node: GetAccessorDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7532
7587
|
createSetAccessorDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
@@ -7535,8 +7590,8 @@ declare namespace ts {
|
|
|
7535
7590
|
updateCallSignature(node: CallSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): CallSignatureDeclaration;
|
|
7536
7591
|
createConstructSignature(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined): ConstructSignatureDeclaration;
|
|
7537
7592
|
updateConstructSignature(node: ConstructSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructSignatureDeclaration;
|
|
7538
|
-
createIndexSignature(modifiers: readonly
|
|
7539
|
-
updateIndexSignature(node: IndexSignatureDeclaration, modifiers: readonly
|
|
7593
|
+
createIndexSignature(modifiers: readonly ModifierLike[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
7594
|
+
updateIndexSignature(node: IndexSignatureDeclaration, modifiers: readonly ModifierLike[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
7540
7595
|
createTemplateLiteralTypeSpan(type: TypeNode, literal: TemplateMiddle | TemplateTail): TemplateLiteralTypeSpan;
|
|
7541
7596
|
updateTemplateLiteralTypeSpan(node: TemplateLiteralTypeSpan, type: TypeNode, literal: TemplateMiddle | TemplateTail): TemplateLiteralTypeSpan;
|
|
7542
7597
|
createClassStaticBlockDeclaration(body: Block): ClassStaticBlockDeclaration;
|
|
@@ -7672,8 +7727,8 @@ declare namespace ts {
|
|
|
7672
7727
|
createSemicolonClassElement(): SemicolonClassElement;
|
|
7673
7728
|
createBlock(statements: readonly Statement[], multiLine?: boolean): Block;
|
|
7674
7729
|
updateBlock(node: Block, statements: readonly Statement[]): Block;
|
|
7675
|
-
createVariableStatement(modifiers: readonly
|
|
7676
|
-
updateVariableStatement(node: VariableStatement, modifiers: readonly
|
|
7730
|
+
createVariableStatement(modifiers: readonly ModifierLike[] | undefined, declarationList: VariableDeclarationList | readonly VariableDeclaration[]): VariableStatement;
|
|
7731
|
+
updateVariableStatement(node: VariableStatement, modifiers: readonly ModifierLike[] | undefined, declarationList: VariableDeclarationList): VariableStatement;
|
|
7677
7732
|
createEmptyStatement(): EmptyStatement;
|
|
7678
7733
|
createExpressionStatement(expression: Expression): ExpressionStatement;
|
|
7679
7734
|
updateExpressionStatement(node: ExpressionStatement, expression: Expression): ExpressionStatement;
|
|
@@ -7714,24 +7769,24 @@ declare namespace ts {
|
|
|
7714
7769
|
updateFunctionDeclaration(node: FunctionDeclaration, modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
|
|
7715
7770
|
createClassDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
7716
7771
|
updateClassDeclaration(node: ClassDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
7717
|
-
createInterfaceDeclaration(modifiers: readonly
|
|
7718
|
-
updateInterfaceDeclaration(node: InterfaceDeclaration, modifiers: readonly
|
|
7719
|
-
createTypeAliasDeclaration(modifiers: readonly
|
|
7720
|
-
updateTypeAliasDeclaration(node: TypeAliasDeclaration, modifiers: readonly
|
|
7721
|
-
createEnumDeclaration(modifiers: readonly
|
|
7722
|
-
updateEnumDeclaration(node: EnumDeclaration, modifiers: readonly
|
|
7723
|
-
createModuleDeclaration(modifiers: readonly
|
|
7724
|
-
updateModuleDeclaration(node: ModuleDeclaration, modifiers: readonly
|
|
7772
|
+
createInterfaceDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7773
|
+
updateInterfaceDeclaration(node: InterfaceDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7774
|
+
createTypeAliasDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7775
|
+
updateTypeAliasDeclaration(node: TypeAliasDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7776
|
+
createEnumDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7777
|
+
updateEnumDeclaration(node: EnumDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7778
|
+
createModuleDeclaration(modifiers: readonly ModifierLike[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags): ModuleDeclaration;
|
|
7779
|
+
updateModuleDeclaration(node: ModuleDeclaration, modifiers: readonly ModifierLike[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
7725
7780
|
createModuleBlock(statements: readonly Statement[]): ModuleBlock;
|
|
7726
7781
|
updateModuleBlock(node: ModuleBlock, statements: readonly Statement[]): ModuleBlock;
|
|
7727
7782
|
createCaseBlock(clauses: readonly CaseOrDefaultClause[]): CaseBlock;
|
|
7728
7783
|
updateCaseBlock(node: CaseBlock, clauses: readonly CaseOrDefaultClause[]): CaseBlock;
|
|
7729
7784
|
createNamespaceExportDeclaration(name: string | Identifier): NamespaceExportDeclaration;
|
|
7730
7785
|
updateNamespaceExportDeclaration(node: NamespaceExportDeclaration, name: Identifier): NamespaceExportDeclaration;
|
|
7731
|
-
createImportEqualsDeclaration(modifiers: readonly
|
|
7732
|
-
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, modifiers: readonly
|
|
7733
|
-
createImportDeclaration(modifiers: readonly
|
|
7734
|
-
updateImportDeclaration(node: ImportDeclaration, modifiers: readonly
|
|
7786
|
+
createImportEqualsDeclaration(modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7787
|
+
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7788
|
+
createImportDeclaration(modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
|
|
7789
|
+
updateImportDeclaration(node: ImportDeclaration, modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
7735
7790
|
createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
7736
7791
|
updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
7737
7792
|
createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
@@ -7748,10 +7803,10 @@ declare namespace ts {
|
|
|
7748
7803
|
updateNamedImports(node: NamedImports, elements: readonly ImportSpecifier[]): NamedImports;
|
|
7749
7804
|
createImportSpecifier(isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
7750
7805
|
updateImportSpecifier(node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
7751
|
-
createExportAssignment(modifiers: readonly
|
|
7752
|
-
updateExportAssignment(node: ExportAssignment, modifiers: readonly
|
|
7753
|
-
createExportDeclaration(modifiers: readonly
|
|
7754
|
-
updateExportDeclaration(node: ExportDeclaration, modifiers: readonly
|
|
7806
|
+
createExportAssignment(modifiers: readonly ModifierLike[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
7807
|
+
updateExportAssignment(node: ExportAssignment, modifiers: readonly ModifierLike[] | undefined, expression: Expression): ExportAssignment;
|
|
7808
|
+
createExportDeclaration(modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
|
|
7809
|
+
updateExportDeclaration(node: ExportDeclaration, modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
|
|
7755
7810
|
createNamedExports(elements: readonly ExportSpecifier[]): NamedExports;
|
|
7756
7811
|
updateNamedExports(node: NamedExports, elements: readonly ExportSpecifier[]): NamedExports;
|
|
7757
7812
|
createExportSpecifier(isTypeOnly: boolean, propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier;
|
|
@@ -8430,6 +8485,11 @@ declare namespace ts {
|
|
|
8430
8485
|
readonly allowRenameOfImportPath?: boolean;
|
|
8431
8486
|
readonly autoImportFileExcludePatterns?: string[];
|
|
8432
8487
|
readonly organizeImportsIgnoreCase?: "auto" | boolean;
|
|
8488
|
+
readonly organizeImportsCollation?: "ordinal" | "unicode";
|
|
8489
|
+
readonly organizeImportsLocale?: string;
|
|
8490
|
+
readonly organizeImportsNumericCollation?: boolean;
|
|
8491
|
+
readonly organizeImportsAccentCollation?: boolean;
|
|
8492
|
+
readonly organizeImportsCaseFirst?: "upper" | "lower" | false;
|
|
8433
8493
|
}
|
|
8434
8494
|
/** Represents a bigint literal value without requiring bigint support */
|
|
8435
8495
|
interface PseudoBigInt {
|
|
@@ -9407,6 +9467,12 @@ declare namespace ts {
|
|
|
9407
9467
|
* Visits an iteration body, adding any block-scoped variables required by the transformation.
|
|
9408
9468
|
*/
|
|
9409
9469
|
function visitIterationBody(body: Statement, visitor: Visitor, context: TransformationContext): Statement;
|
|
9470
|
+
/**
|
|
9471
|
+
* Visits the elements of a {@link CommaListExpression}.
|
|
9472
|
+
* @param visitor The visitor to use when visiting expressions whose result will not be discarded at runtime.
|
|
9473
|
+
* @param discardVisitor The visitor to use when visiting expressions whose result will be discarded at runtime. Defaults to {@link visitor}.
|
|
9474
|
+
*/
|
|
9475
|
+
function visitCommaListElements(elements: NodeArray<Expression>, visitor: Visitor, discardVisitor?: Visitor): NodeArray<Expression>;
|
|
9410
9476
|
/**
|
|
9411
9477
|
* Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place.
|
|
9412
9478
|
*
|