typescript 5.0.0-dev.20230118 → 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 +4906 -1607
- package/lib/tsserver.js +5712 -2190
- package/lib/tsserverlibrary.d.ts +106 -40
- package/lib/tsserverlibrary.js +5718 -2235
- package/lib/typescript.d.ts +52 -37
- package/lib/typescript.js +5501 -2056
- package/lib/typingsInstaller.js +243 -277
- package/package.json +2 -2
package/lib/typescript.d.ts
CHANGED
|
@@ -444,7 +444,7 @@ declare namespace ts {
|
|
|
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;
|
|
446
446
|
type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
|
|
447
|
-
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;
|
|
447
|
+
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;
|
|
448
448
|
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;
|
|
449
449
|
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;
|
|
450
450
|
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;
|
|
@@ -596,6 +596,9 @@ declare namespace ts {
|
|
|
596
596
|
type ExclamationToken = PunctuationToken<SyntaxKind.ExclamationToken>;
|
|
597
597
|
type ColonToken = PunctuationToken<SyntaxKind.ColonToken>;
|
|
598
598
|
type EqualsToken = PunctuationToken<SyntaxKind.EqualsToken>;
|
|
599
|
+
type AmpersandAmpersandEqualsToken = PunctuationToken<SyntaxKind.AmpersandAmpersandEqualsToken>;
|
|
600
|
+
type BarBarEqualsToken = PunctuationToken<SyntaxKind.BarBarEqualsToken>;
|
|
601
|
+
type QuestionQuestionEqualsToken = PunctuationToken<SyntaxKind.QuestionQuestionEqualsToken>;
|
|
599
602
|
type AsteriskToken = PunctuationToken<SyntaxKind.AsteriskToken>;
|
|
600
603
|
type EqualsGreaterThanToken = PunctuationToken<SyntaxKind.EqualsGreaterThanToken>;
|
|
601
604
|
type PlusToken = PunctuationToken<SyntaxKind.PlusToken>;
|
|
@@ -806,7 +809,7 @@ declare namespace ts {
|
|
|
806
809
|
}
|
|
807
810
|
interface ShorthandPropertyAssignment {
|
|
808
811
|
/** @deprecated A shorthand property assignment cannot have modifiers */
|
|
809
|
-
readonly modifiers?: NodeArray<
|
|
812
|
+
readonly modifiers?: NodeArray<ModifierLike> | undefined;
|
|
810
813
|
/** @deprecated A shorthand property assignment cannot have a question token */
|
|
811
814
|
readonly questionToken?: QuestionToken | undefined;
|
|
812
815
|
/** @deprecated A shorthand property assignment cannot have an exclamation token */
|
|
@@ -850,7 +853,7 @@ declare namespace ts {
|
|
|
850
853
|
type FunctionLike = SignatureDeclaration;
|
|
851
854
|
interface FunctionDeclaration extends FunctionLikeDeclarationBase, DeclarationStatement, LocalsContainer {
|
|
852
855
|
readonly kind: SyntaxKind.FunctionDeclaration;
|
|
853
|
-
readonly modifiers?: NodeArray<
|
|
856
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
854
857
|
readonly name?: Identifier;
|
|
855
858
|
readonly body?: FunctionBody;
|
|
856
859
|
}
|
|
@@ -870,7 +873,7 @@ declare namespace ts {
|
|
|
870
873
|
interface ConstructorDeclaration extends FunctionLikeDeclarationBase, ClassElement, JSDocContainer, LocalsContainer {
|
|
871
874
|
readonly kind: SyntaxKind.Constructor;
|
|
872
875
|
readonly parent: ClassLikeDeclaration;
|
|
873
|
-
readonly modifiers?: NodeArray<
|
|
876
|
+
readonly modifiers?: NodeArray<ModifierLike> | undefined;
|
|
874
877
|
readonly body?: FunctionBody | undefined;
|
|
875
878
|
}
|
|
876
879
|
/** For when we encounter a semicolon in a class declaration. ES6 allows these as class elements. */
|
|
@@ -896,7 +899,7 @@ declare namespace ts {
|
|
|
896
899
|
interface IndexSignatureDeclaration extends SignatureDeclarationBase, ClassElement, TypeElement, LocalsContainer {
|
|
897
900
|
readonly kind: SyntaxKind.IndexSignature;
|
|
898
901
|
readonly parent: ObjectTypeDeclaration;
|
|
899
|
-
readonly modifiers?: NodeArray<
|
|
902
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
900
903
|
readonly type: TypeNode;
|
|
901
904
|
}
|
|
902
905
|
interface ClassStaticBlockDeclaration extends ClassElement, JSDocContainer, LocalsContainer {
|
|
@@ -1479,7 +1482,7 @@ declare namespace ts {
|
|
|
1479
1482
|
interface DebuggerStatement extends Statement, FlowContainer {
|
|
1480
1483
|
readonly kind: SyntaxKind.DebuggerStatement;
|
|
1481
1484
|
}
|
|
1482
|
-
interface MissingDeclaration extends DeclarationStatement {
|
|
1485
|
+
interface MissingDeclaration extends DeclarationStatement, PrimaryExpression {
|
|
1483
1486
|
readonly kind: SyntaxKind.MissingDeclaration;
|
|
1484
1487
|
readonly name?: Identifier;
|
|
1485
1488
|
}
|
|
@@ -1490,7 +1493,7 @@ declare namespace ts {
|
|
|
1490
1493
|
}
|
|
1491
1494
|
interface VariableStatement extends Statement, FlowContainer {
|
|
1492
1495
|
readonly kind: SyntaxKind.VariableStatement;
|
|
1493
|
-
readonly modifiers?: NodeArray<
|
|
1496
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1494
1497
|
readonly declarationList: VariableDeclarationList;
|
|
1495
1498
|
}
|
|
1496
1499
|
interface ExpressionStatement extends Statement, FlowContainer {
|
|
@@ -1627,7 +1630,7 @@ declare namespace ts {
|
|
|
1627
1630
|
}
|
|
1628
1631
|
interface InterfaceDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1629
1632
|
readonly kind: SyntaxKind.InterfaceDeclaration;
|
|
1630
|
-
readonly modifiers?: NodeArray<
|
|
1633
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1631
1634
|
readonly name: Identifier;
|
|
1632
1635
|
readonly typeParameters?: NodeArray<TypeParameterDeclaration>;
|
|
1633
1636
|
readonly heritageClauses?: NodeArray<HeritageClause>;
|
|
@@ -1641,7 +1644,7 @@ declare namespace ts {
|
|
|
1641
1644
|
}
|
|
1642
1645
|
interface TypeAliasDeclaration extends DeclarationStatement, JSDocContainer, LocalsContainer {
|
|
1643
1646
|
readonly kind: SyntaxKind.TypeAliasDeclaration;
|
|
1644
|
-
readonly modifiers?: NodeArray<
|
|
1647
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1645
1648
|
readonly name: Identifier;
|
|
1646
1649
|
readonly typeParameters?: NodeArray<TypeParameterDeclaration>;
|
|
1647
1650
|
readonly type: TypeNode;
|
|
@@ -1654,7 +1657,7 @@ declare namespace ts {
|
|
|
1654
1657
|
}
|
|
1655
1658
|
interface EnumDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1656
1659
|
readonly kind: SyntaxKind.EnumDeclaration;
|
|
1657
|
-
readonly modifiers?: NodeArray<
|
|
1660
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1658
1661
|
readonly name: Identifier;
|
|
1659
1662
|
readonly members: NodeArray<EnumMember>;
|
|
1660
1663
|
}
|
|
@@ -1663,7 +1666,7 @@ declare namespace ts {
|
|
|
1663
1666
|
interface ModuleDeclaration extends DeclarationStatement, JSDocContainer, LocalsContainer {
|
|
1664
1667
|
readonly kind: SyntaxKind.ModuleDeclaration;
|
|
1665
1668
|
readonly parent: ModuleBody | SourceFile;
|
|
1666
|
-
readonly modifiers?: NodeArray<
|
|
1669
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1667
1670
|
readonly name: ModuleName;
|
|
1668
1671
|
readonly body?: ModuleBody | JSDocNamespaceDeclaration;
|
|
1669
1672
|
}
|
|
@@ -1691,7 +1694,7 @@ declare namespace ts {
|
|
|
1691
1694
|
interface ImportEqualsDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1692
1695
|
readonly kind: SyntaxKind.ImportEqualsDeclaration;
|
|
1693
1696
|
readonly parent: SourceFile | ModuleBlock;
|
|
1694
|
-
readonly modifiers?: NodeArray<
|
|
1697
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1695
1698
|
readonly name: Identifier;
|
|
1696
1699
|
readonly isTypeOnly: boolean;
|
|
1697
1700
|
readonly moduleReference: ModuleReference;
|
|
@@ -1704,7 +1707,7 @@ declare namespace ts {
|
|
|
1704
1707
|
interface ImportDeclaration extends Statement {
|
|
1705
1708
|
readonly kind: SyntaxKind.ImportDeclaration;
|
|
1706
1709
|
readonly parent: SourceFile | ModuleBlock;
|
|
1707
|
-
readonly modifiers?: NodeArray<
|
|
1710
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1708
1711
|
readonly importClause?: ImportClause;
|
|
1709
1712
|
/** If this is not a StringLiteral it will be a grammar error. */
|
|
1710
1713
|
readonly moduleSpecifier: Expression;
|
|
@@ -1749,7 +1752,7 @@ declare namespace ts {
|
|
|
1749
1752
|
interface ExportDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1750
1753
|
readonly kind: SyntaxKind.ExportDeclaration;
|
|
1751
1754
|
readonly parent: SourceFile | ModuleBlock;
|
|
1752
|
-
readonly modifiers?: NodeArray<
|
|
1755
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1753
1756
|
readonly isTypeOnly: boolean;
|
|
1754
1757
|
/** Will not be assigned in the case of `export * from "foo";` */
|
|
1755
1758
|
readonly exportClause?: NamedExportBindings;
|
|
@@ -1817,7 +1820,7 @@ declare namespace ts {
|
|
|
1817
1820
|
interface ExportAssignment extends DeclarationStatement, JSDocContainer {
|
|
1818
1821
|
readonly kind: SyntaxKind.ExportAssignment;
|
|
1819
1822
|
readonly parent: SourceFile;
|
|
1820
|
-
readonly modifiers?: NodeArray<
|
|
1823
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1821
1824
|
readonly isExportEquals?: boolean;
|
|
1822
1825
|
readonly expression: Expression;
|
|
1823
1826
|
}
|
|
@@ -3190,6 +3193,7 @@ declare namespace ts {
|
|
|
3190
3193
|
types?: string[];
|
|
3191
3194
|
/** Paths used to compute primary types search locations */
|
|
3192
3195
|
typeRoots?: string[];
|
|
3196
|
+
verbatimModuleSyntax?: boolean;
|
|
3193
3197
|
esModuleInterop?: boolean;
|
|
3194
3198
|
useDefineForClassFields?: boolean;
|
|
3195
3199
|
[option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined;
|
|
@@ -3584,8 +3588,8 @@ declare namespace ts {
|
|
|
3584
3588
|
updateMethodSignature(node: MethodSignature, modifiers: readonly Modifier[] | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): MethodSignature;
|
|
3585
3589
|
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;
|
|
3586
3590
|
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;
|
|
3587
|
-
createConstructorDeclaration(modifiers: readonly
|
|
3588
|
-
updateConstructorDeclaration(node: ConstructorDeclaration, modifiers: readonly
|
|
3591
|
+
createConstructorDeclaration(modifiers: readonly ModifierLike[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
3592
|
+
updateConstructorDeclaration(node: ConstructorDeclaration, modifiers: readonly ModifierLike[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
3589
3593
|
createGetAccessorDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
3590
3594
|
updateGetAccessorDeclaration(node: GetAccessorDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
3591
3595
|
createSetAccessorDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
@@ -3594,8 +3598,8 @@ declare namespace ts {
|
|
|
3594
3598
|
updateCallSignature(node: CallSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): CallSignatureDeclaration;
|
|
3595
3599
|
createConstructSignature(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined): ConstructSignatureDeclaration;
|
|
3596
3600
|
updateConstructSignature(node: ConstructSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructSignatureDeclaration;
|
|
3597
|
-
createIndexSignature(modifiers: readonly
|
|
3598
|
-
updateIndexSignature(node: IndexSignatureDeclaration, modifiers: readonly
|
|
3601
|
+
createIndexSignature(modifiers: readonly ModifierLike[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
3602
|
+
updateIndexSignature(node: IndexSignatureDeclaration, modifiers: readonly ModifierLike[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
3599
3603
|
createTemplateLiteralTypeSpan(type: TypeNode, literal: TemplateMiddle | TemplateTail): TemplateLiteralTypeSpan;
|
|
3600
3604
|
updateTemplateLiteralTypeSpan(node: TemplateLiteralTypeSpan, type: TypeNode, literal: TemplateMiddle | TemplateTail): TemplateLiteralTypeSpan;
|
|
3601
3605
|
createClassStaticBlockDeclaration(body: Block): ClassStaticBlockDeclaration;
|
|
@@ -3731,8 +3735,8 @@ declare namespace ts {
|
|
|
3731
3735
|
createSemicolonClassElement(): SemicolonClassElement;
|
|
3732
3736
|
createBlock(statements: readonly Statement[], multiLine?: boolean): Block;
|
|
3733
3737
|
updateBlock(node: Block, statements: readonly Statement[]): Block;
|
|
3734
|
-
createVariableStatement(modifiers: readonly
|
|
3735
|
-
updateVariableStatement(node: VariableStatement, modifiers: readonly
|
|
3738
|
+
createVariableStatement(modifiers: readonly ModifierLike[] | undefined, declarationList: VariableDeclarationList | readonly VariableDeclaration[]): VariableStatement;
|
|
3739
|
+
updateVariableStatement(node: VariableStatement, modifiers: readonly ModifierLike[] | undefined, declarationList: VariableDeclarationList): VariableStatement;
|
|
3736
3740
|
createEmptyStatement(): EmptyStatement;
|
|
3737
3741
|
createExpressionStatement(expression: Expression): ExpressionStatement;
|
|
3738
3742
|
updateExpressionStatement(node: ExpressionStatement, expression: Expression): ExpressionStatement;
|
|
@@ -3773,24 +3777,24 @@ declare namespace ts {
|
|
|
3773
3777
|
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;
|
|
3774
3778
|
createClassDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
3775
3779
|
updateClassDeclaration(node: ClassDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
3776
|
-
createInterfaceDeclaration(modifiers: readonly
|
|
3777
|
-
updateInterfaceDeclaration(node: InterfaceDeclaration, modifiers: readonly
|
|
3778
|
-
createTypeAliasDeclaration(modifiers: readonly
|
|
3779
|
-
updateTypeAliasDeclaration(node: TypeAliasDeclaration, modifiers: readonly
|
|
3780
|
-
createEnumDeclaration(modifiers: readonly
|
|
3781
|
-
updateEnumDeclaration(node: EnumDeclaration, modifiers: readonly
|
|
3782
|
-
createModuleDeclaration(modifiers: readonly
|
|
3783
|
-
updateModuleDeclaration(node: ModuleDeclaration, modifiers: readonly
|
|
3780
|
+
createInterfaceDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
3781
|
+
updateInterfaceDeclaration(node: InterfaceDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
3782
|
+
createTypeAliasDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
3783
|
+
updateTypeAliasDeclaration(node: TypeAliasDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
3784
|
+
createEnumDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
3785
|
+
updateEnumDeclaration(node: EnumDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
3786
|
+
createModuleDeclaration(modifiers: readonly ModifierLike[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags): ModuleDeclaration;
|
|
3787
|
+
updateModuleDeclaration(node: ModuleDeclaration, modifiers: readonly ModifierLike[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
3784
3788
|
createModuleBlock(statements: readonly Statement[]): ModuleBlock;
|
|
3785
3789
|
updateModuleBlock(node: ModuleBlock, statements: readonly Statement[]): ModuleBlock;
|
|
3786
3790
|
createCaseBlock(clauses: readonly CaseOrDefaultClause[]): CaseBlock;
|
|
3787
3791
|
updateCaseBlock(node: CaseBlock, clauses: readonly CaseOrDefaultClause[]): CaseBlock;
|
|
3788
3792
|
createNamespaceExportDeclaration(name: string | Identifier): NamespaceExportDeclaration;
|
|
3789
3793
|
updateNamespaceExportDeclaration(node: NamespaceExportDeclaration, name: Identifier): NamespaceExportDeclaration;
|
|
3790
|
-
createImportEqualsDeclaration(modifiers: readonly
|
|
3791
|
-
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, modifiers: readonly
|
|
3792
|
-
createImportDeclaration(modifiers: readonly
|
|
3793
|
-
updateImportDeclaration(node: ImportDeclaration, modifiers: readonly
|
|
3794
|
+
createImportEqualsDeclaration(modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
3795
|
+
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
3796
|
+
createImportDeclaration(modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
|
|
3797
|
+
updateImportDeclaration(node: ImportDeclaration, modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
3794
3798
|
createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3795
3799
|
updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3796
3800
|
createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
@@ -3807,10 +3811,10 @@ declare namespace ts {
|
|
|
3807
3811
|
updateNamedImports(node: NamedImports, elements: readonly ImportSpecifier[]): NamedImports;
|
|
3808
3812
|
createImportSpecifier(isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3809
3813
|
updateImportSpecifier(node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3810
|
-
createExportAssignment(modifiers: readonly
|
|
3811
|
-
updateExportAssignment(node: ExportAssignment, modifiers: readonly
|
|
3812
|
-
createExportDeclaration(modifiers: readonly
|
|
3813
|
-
updateExportDeclaration(node: ExportDeclaration, modifiers: readonly
|
|
3814
|
+
createExportAssignment(modifiers: readonly ModifierLike[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
3815
|
+
updateExportAssignment(node: ExportAssignment, modifiers: readonly ModifierLike[] | undefined, expression: Expression): ExportAssignment;
|
|
3816
|
+
createExportDeclaration(modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
|
|
3817
|
+
updateExportDeclaration(node: ExportDeclaration, modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
|
|
3814
3818
|
createNamedExports(elements: readonly ExportSpecifier[]): NamedExports;
|
|
3815
3819
|
updateNamedExports(node: NamedExports, elements: readonly ExportSpecifier[]): NamedExports;
|
|
3816
3820
|
createExportSpecifier(isTypeOnly: boolean, propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier;
|
|
@@ -4489,6 +4493,11 @@ declare namespace ts {
|
|
|
4489
4493
|
readonly allowRenameOfImportPath?: boolean;
|
|
4490
4494
|
readonly autoImportFileExcludePatterns?: string[];
|
|
4491
4495
|
readonly organizeImportsIgnoreCase?: "auto" | boolean;
|
|
4496
|
+
readonly organizeImportsCollation?: "ordinal" | "unicode";
|
|
4497
|
+
readonly organizeImportsLocale?: string;
|
|
4498
|
+
readonly organizeImportsNumericCollation?: boolean;
|
|
4499
|
+
readonly organizeImportsAccentCollation?: boolean;
|
|
4500
|
+
readonly organizeImportsCaseFirst?: "upper" | "lower" | false;
|
|
4492
4501
|
}
|
|
4493
4502
|
/** Represents a bigint literal value without requiring bigint support */
|
|
4494
4503
|
interface PseudoBigInt {
|
|
@@ -5466,6 +5475,12 @@ declare namespace ts {
|
|
|
5466
5475
|
* Visits an iteration body, adding any block-scoped variables required by the transformation.
|
|
5467
5476
|
*/
|
|
5468
5477
|
function visitIterationBody(body: Statement, visitor: Visitor, context: TransformationContext): Statement;
|
|
5478
|
+
/**
|
|
5479
|
+
* Visits the elements of a {@link CommaListExpression}.
|
|
5480
|
+
* @param visitor The visitor to use when visiting expressions whose result will not be discarded at runtime.
|
|
5481
|
+
* @param discardVisitor The visitor to use when visiting expressions whose result will be discarded at runtime. Defaults to {@link visitor}.
|
|
5482
|
+
*/
|
|
5483
|
+
function visitCommaListElements(elements: NodeArray<Expression>, visitor: Visitor, discardVisitor?: Visitor): NodeArray<Expression>;
|
|
5469
5484
|
/**
|
|
5470
5485
|
* Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place.
|
|
5471
5486
|
*
|