typescript 4.7.2 → 4.8.0-beta
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/cs/diagnosticMessages.generated.json +19 -3
- package/lib/de/diagnosticMessages.generated.json +17 -3
- package/lib/dynamicImportCompat.js +25 -0
- package/lib/es/diagnosticMessages.generated.json +19 -3
- package/lib/fr/diagnosticMessages.generated.json +19 -3
- package/lib/it/diagnosticMessages.generated.json +17 -3
- package/lib/ja/diagnosticMessages.generated.json +17 -3
- package/lib/ko/diagnosticMessages.generated.json +19 -3
- package/lib/lib.dom.d.ts +128 -183
- package/lib/lib.dom.iterable.d.ts +1 -11
- package/lib/lib.es2020.intl.d.ts +30 -5
- package/lib/lib.es2021.intl.d.ts +7 -3
- package/lib/lib.es2022.d.ts +1 -0
- package/lib/lib.es2022.sharedmemory.d.ts +27 -0
- package/lib/lib.es5.d.ts +1 -1
- package/lib/lib.esnext.intl.d.ts +5 -1
- package/lib/lib.webworker.d.ts +54 -27
- package/lib/lib.webworker.iterable.d.ts +1 -1
- package/lib/pl/diagnosticMessages.generated.json +19 -3
- package/lib/protocol.d.ts +2 -0
- package/lib/pt-br/diagnosticMessages.generated.json +19 -3
- package/lib/ru/diagnosticMessages.generated.json +19 -3
- package/lib/tr/diagnosticMessages.generated.json +17 -3
- package/lib/tsc.js +4088 -2539
- package/lib/tsserver.js +7568 -3883
- package/lib/tsserverlibrary.d.ts +560 -110
- package/lib/tsserverlibrary.js +7479 -3881
- package/lib/typescript.d.ts +548 -108
- package/lib/typescript.js +6993 -3712
- package/lib/typescriptServices.d.ts +548 -108
- package/lib/typescriptServices.js +6993 -3712
- package/lib/typingsInstaller.js +5037 -3481
- package/lib/zh-cn/diagnosticMessages.generated.json +19 -3
- package/lib/zh-tw/diagnosticMessages.generated.json +19 -3
- package/package.json +21 -20
package/lib/typescript.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ and limitations under the License.
|
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
16
|
declare namespace ts {
|
|
17
|
-
const versionMajorMinor = "4.
|
|
17
|
+
const versionMajorMinor = "4.8";
|
|
18
18
|
/** The version of the TypeScript compiler release */
|
|
19
19
|
const version: string;
|
|
20
20
|
/**
|
|
@@ -425,6 +425,7 @@ declare namespace ts {
|
|
|
425
425
|
JSDocFunctionType = 317,
|
|
426
426
|
JSDocVariadicType = 318,
|
|
427
427
|
JSDocNamepathType = 319,
|
|
428
|
+
JSDoc = 320,
|
|
428
429
|
/** @deprecated Use SyntaxKind.JSDoc */
|
|
429
430
|
JSDocComment = 320,
|
|
430
431
|
JSDocText = 321,
|
|
@@ -493,7 +494,6 @@ declare namespace ts {
|
|
|
493
494
|
LastJSDocNode = 347,
|
|
494
495
|
FirstJSDocTagNode = 327,
|
|
495
496
|
LastJSDocTagNode = 347,
|
|
496
|
-
JSDoc = 320
|
|
497
497
|
}
|
|
498
498
|
export type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
499
499
|
export type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
@@ -554,13 +554,15 @@ declare namespace ts {
|
|
|
554
554
|
Override = 16384,
|
|
555
555
|
In = 32768,
|
|
556
556
|
Out = 65536,
|
|
557
|
+
Decorator = 131072,
|
|
557
558
|
HasComputedFlags = 536870912,
|
|
558
559
|
AccessibilityModifier = 28,
|
|
559
560
|
ParameterPropertyModifier = 16476,
|
|
560
561
|
NonPublicAccessibilityModifier = 24,
|
|
561
562
|
TypeScriptModifier = 116958,
|
|
562
563
|
ExportDefault = 513,
|
|
563
|
-
All =
|
|
564
|
+
All = 257023,
|
|
565
|
+
Modifier = 125951
|
|
564
566
|
}
|
|
565
567
|
export enum JsxFlags {
|
|
566
568
|
None = 0,
|
|
@@ -573,8 +575,6 @@ declare namespace ts {
|
|
|
573
575
|
export interface Node extends ReadonlyTextRange {
|
|
574
576
|
readonly kind: SyntaxKind;
|
|
575
577
|
readonly flags: NodeFlags;
|
|
576
|
-
readonly decorators?: NodeArray<Decorator>;
|
|
577
|
-
readonly modifiers?: ModifiersArray;
|
|
578
578
|
readonly parent: Node;
|
|
579
579
|
}
|
|
580
580
|
export interface JSDocContainer {
|
|
@@ -583,7 +583,9 @@ declare namespace ts {
|
|
|
583
583
|
export type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType;
|
|
584
584
|
export type HasTypeArguments = CallExpression | NewExpression | TaggedTemplateExpression | JsxOpeningElement | JsxSelfClosingElement;
|
|
585
585
|
export type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute;
|
|
586
|
-
export type HasExpressionInitializer = VariableDeclaration | ParameterDeclaration | BindingElement |
|
|
586
|
+
export type HasExpressionInitializer = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyDeclaration | PropertyAssignment | EnumMember;
|
|
587
|
+
export type HasDecorators = ParameterDeclaration | PropertyDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ClassExpression | ClassDeclaration;
|
|
588
|
+
export type HasModifiers = TypeParameterDeclaration | ParameterDeclaration | ConstructorTypeNode | PropertySignature | PropertyDeclaration | MethodSignature | MethodDeclaration | ConstructorDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | IndexSignatureDeclaration | FunctionExpression | ArrowFunction | ClassExpression | VariableStatement | FunctionDeclaration | ClassDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | ExportAssignment | ExportDeclaration;
|
|
587
589
|
export interface NodeArray<T extends Node> extends ReadonlyArray<T>, ReadonlyTextRange {
|
|
588
590
|
readonly hasTrailingComma: boolean;
|
|
589
591
|
}
|
|
@@ -632,6 +634,7 @@ declare namespace ts {
|
|
|
632
634
|
/** @deprecated Use `ReadonlyKeyword` instead. */
|
|
633
635
|
export type ReadonlyToken = ReadonlyKeyword;
|
|
634
636
|
export type Modifier = AbstractKeyword | AsyncKeyword | ConstKeyword | DeclareKeyword | DefaultKeyword | ExportKeyword | InKeyword | PrivateKeyword | ProtectedKeyword | PublicKeyword | OutKeyword | OverrideKeyword | ReadonlyKeyword | StaticKeyword;
|
|
637
|
+
export type ModifierLike = Modifier | Decorator;
|
|
635
638
|
export type AccessibilityModifier = PublicKeyword | PrivateKeyword | ProtectedKeyword;
|
|
636
639
|
export type ParameterPropertyModifier = AccessibilityModifier | ReadonlyKeyword;
|
|
637
640
|
export type ClassMemberModifier = AccessibilityModifier | ReadonlyKeyword | StaticKeyword;
|
|
@@ -691,6 +694,7 @@ declare namespace ts {
|
|
|
691
694
|
export interface TypeParameterDeclaration extends NamedDeclaration {
|
|
692
695
|
readonly kind: SyntaxKind.TypeParameter;
|
|
693
696
|
readonly parent: DeclarationWithTypeParameterChildren | InferTypeNode;
|
|
697
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
694
698
|
readonly name: Identifier;
|
|
695
699
|
/** Note: Consider calling `getEffectiveConstraintOfTypeParameter` */
|
|
696
700
|
readonly constraint?: TypeNode;
|
|
@@ -700,9 +704,9 @@ declare namespace ts {
|
|
|
700
704
|
export interface SignatureDeclarationBase extends NamedDeclaration, JSDocContainer {
|
|
701
705
|
readonly kind: SignatureDeclaration["kind"];
|
|
702
706
|
readonly name?: PropertyName;
|
|
703
|
-
readonly typeParameters?: NodeArray<TypeParameterDeclaration
|
|
707
|
+
readonly typeParameters?: NodeArray<TypeParameterDeclaration> | undefined;
|
|
704
708
|
readonly parameters: NodeArray<ParameterDeclaration>;
|
|
705
|
-
readonly type?: TypeNode;
|
|
709
|
+
readonly type?: TypeNode | undefined;
|
|
706
710
|
}
|
|
707
711
|
export type SignatureDeclaration = CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | AccessorDeclaration | FunctionExpression | ArrowFunction;
|
|
708
712
|
export interface CallSignatureDeclaration extends SignatureDeclarationBase, TypeElement {
|
|
@@ -728,6 +732,7 @@ declare namespace ts {
|
|
|
728
732
|
export interface ParameterDeclaration extends NamedDeclaration, JSDocContainer {
|
|
729
733
|
readonly kind: SyntaxKind.Parameter;
|
|
730
734
|
readonly parent: SignatureDeclaration;
|
|
735
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
731
736
|
readonly dotDotDotToken?: DotDotDotToken;
|
|
732
737
|
readonly name: BindingName;
|
|
733
738
|
readonly questionToken?: QuestionToken;
|
|
@@ -744,14 +749,15 @@ declare namespace ts {
|
|
|
744
749
|
}
|
|
745
750
|
export interface PropertySignature extends TypeElement, JSDocContainer {
|
|
746
751
|
readonly kind: SyntaxKind.PropertySignature;
|
|
752
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
747
753
|
readonly name: PropertyName;
|
|
748
754
|
readonly questionToken?: QuestionToken;
|
|
749
755
|
readonly type?: TypeNode;
|
|
750
|
-
initializer?: Expression;
|
|
751
756
|
}
|
|
752
757
|
export interface PropertyDeclaration extends ClassElement, JSDocContainer {
|
|
753
758
|
readonly kind: SyntaxKind.PropertyDeclaration;
|
|
754
759
|
readonly parent: ClassLikeDeclaration;
|
|
760
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
755
761
|
readonly name: PropertyName;
|
|
756
762
|
readonly questionToken?: QuestionToken;
|
|
757
763
|
readonly exclamationToken?: ExclamationToken;
|
|
@@ -768,16 +774,12 @@ declare namespace ts {
|
|
|
768
774
|
readonly kind: SyntaxKind.PropertyAssignment;
|
|
769
775
|
readonly parent: ObjectLiteralExpression;
|
|
770
776
|
readonly name: PropertyName;
|
|
771
|
-
readonly questionToken?: QuestionToken;
|
|
772
|
-
readonly exclamationToken?: ExclamationToken;
|
|
773
777
|
readonly initializer: Expression;
|
|
774
778
|
}
|
|
775
779
|
export interface ShorthandPropertyAssignment extends ObjectLiteralElement, JSDocContainer {
|
|
776
780
|
readonly kind: SyntaxKind.ShorthandPropertyAssignment;
|
|
777
781
|
readonly parent: ObjectLiteralExpression;
|
|
778
782
|
readonly name: Identifier;
|
|
779
|
-
readonly questionToken?: QuestionToken;
|
|
780
|
-
readonly exclamationToken?: ExclamationToken;
|
|
781
783
|
readonly equalsToken?: EqualsToken;
|
|
782
784
|
readonly objectAssignmentInitializer?: Expression;
|
|
783
785
|
}
|
|
@@ -812,34 +814,38 @@ declare namespace ts {
|
|
|
812
814
|
*/
|
|
813
815
|
export interface FunctionLikeDeclarationBase extends SignatureDeclarationBase {
|
|
814
816
|
_functionLikeDeclarationBrand: any;
|
|
815
|
-
readonly asteriskToken?: AsteriskToken;
|
|
816
|
-
readonly questionToken?: QuestionToken;
|
|
817
|
-
readonly exclamationToken?: ExclamationToken;
|
|
818
|
-
readonly body?: Block | Expression;
|
|
817
|
+
readonly asteriskToken?: AsteriskToken | undefined;
|
|
818
|
+
readonly questionToken?: QuestionToken | undefined;
|
|
819
|
+
readonly exclamationToken?: ExclamationToken | undefined;
|
|
820
|
+
readonly body?: Block | Expression | undefined;
|
|
819
821
|
}
|
|
820
822
|
export type FunctionLikeDeclaration = FunctionDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ConstructorDeclaration | FunctionExpression | ArrowFunction;
|
|
821
823
|
/** @deprecated Use SignatureDeclaration */
|
|
822
824
|
export type FunctionLike = SignatureDeclaration;
|
|
823
825
|
export interface FunctionDeclaration extends FunctionLikeDeclarationBase, DeclarationStatement {
|
|
824
826
|
readonly kind: SyntaxKind.FunctionDeclaration;
|
|
827
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
825
828
|
readonly name?: Identifier;
|
|
826
829
|
readonly body?: FunctionBody;
|
|
827
830
|
}
|
|
828
831
|
export interface MethodSignature extends SignatureDeclarationBase, TypeElement {
|
|
829
832
|
readonly kind: SyntaxKind.MethodSignature;
|
|
830
833
|
readonly parent: ObjectTypeDeclaration;
|
|
834
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
831
835
|
readonly name: PropertyName;
|
|
832
836
|
}
|
|
833
837
|
export interface MethodDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer {
|
|
834
838
|
readonly kind: SyntaxKind.MethodDeclaration;
|
|
835
839
|
readonly parent: ClassLikeDeclaration | ObjectLiteralExpression;
|
|
840
|
+
readonly modifiers?: NodeArray<ModifierLike> | undefined;
|
|
836
841
|
readonly name: PropertyName;
|
|
837
|
-
readonly body?: FunctionBody;
|
|
842
|
+
readonly body?: FunctionBody | undefined;
|
|
838
843
|
}
|
|
839
844
|
export interface ConstructorDeclaration extends FunctionLikeDeclarationBase, ClassElement, JSDocContainer {
|
|
840
845
|
readonly kind: SyntaxKind.Constructor;
|
|
841
846
|
readonly parent: ClassLikeDeclaration;
|
|
842
|
-
readonly
|
|
847
|
+
readonly modifiers?: NodeArray<Modifier> | undefined;
|
|
848
|
+
readonly body?: FunctionBody | undefined;
|
|
843
849
|
}
|
|
844
850
|
/** For when we encounter a semicolon in a class declaration. ES6 allows these as class elements. */
|
|
845
851
|
export interface SemicolonClassElement extends ClassElement {
|
|
@@ -849,12 +855,14 @@ declare namespace ts {
|
|
|
849
855
|
export interface GetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer {
|
|
850
856
|
readonly kind: SyntaxKind.GetAccessor;
|
|
851
857
|
readonly parent: ClassLikeDeclaration | ObjectLiteralExpression | TypeLiteralNode | InterfaceDeclaration;
|
|
858
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
852
859
|
readonly name: PropertyName;
|
|
853
860
|
readonly body?: FunctionBody;
|
|
854
861
|
}
|
|
855
862
|
export interface SetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer {
|
|
856
863
|
readonly kind: SyntaxKind.SetAccessor;
|
|
857
864
|
readonly parent: ClassLikeDeclaration | ObjectLiteralExpression | TypeLiteralNode | InterfaceDeclaration;
|
|
865
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
858
866
|
readonly name: PropertyName;
|
|
859
867
|
readonly body?: FunctionBody;
|
|
860
868
|
}
|
|
@@ -862,6 +870,7 @@ declare namespace ts {
|
|
|
862
870
|
export interface IndexSignatureDeclaration extends SignatureDeclarationBase, ClassElement, TypeElement {
|
|
863
871
|
readonly kind: SyntaxKind.IndexSignature;
|
|
864
872
|
readonly parent: ObjectTypeDeclaration;
|
|
873
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
865
874
|
readonly type: TypeNode;
|
|
866
875
|
}
|
|
867
876
|
export interface ClassStaticBlockDeclaration extends ClassElement, JSDocContainer {
|
|
@@ -901,6 +910,7 @@ declare namespace ts {
|
|
|
901
910
|
}
|
|
902
911
|
export interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase {
|
|
903
912
|
readonly kind: SyntaxKind.ConstructorType;
|
|
913
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
904
914
|
}
|
|
905
915
|
export interface NodeWithTypeArguments extends TypeNode {
|
|
906
916
|
readonly typeArguments?: NodeArray<TypeNode>;
|
|
@@ -1157,11 +1167,13 @@ declare namespace ts {
|
|
|
1157
1167
|
export type ConciseBody = FunctionBody | Expression;
|
|
1158
1168
|
export interface FunctionExpression extends PrimaryExpression, FunctionLikeDeclarationBase, JSDocContainer {
|
|
1159
1169
|
readonly kind: SyntaxKind.FunctionExpression;
|
|
1170
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1160
1171
|
readonly name?: Identifier;
|
|
1161
1172
|
readonly body: FunctionBody;
|
|
1162
1173
|
}
|
|
1163
1174
|
export interface ArrowFunction extends Expression, FunctionLikeDeclarationBase, JSDocContainer {
|
|
1164
1175
|
readonly kind: SyntaxKind.ArrowFunction;
|
|
1176
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1165
1177
|
readonly equalsGreaterThanToken: EqualsGreaterThanToken;
|
|
1166
1178
|
readonly body: ConciseBody;
|
|
1167
1179
|
readonly name: never;
|
|
@@ -1388,8 +1400,9 @@ declare namespace ts {
|
|
|
1388
1400
|
readonly kind: SyntaxKind.JsxAttribute;
|
|
1389
1401
|
readonly parent: JsxAttributes;
|
|
1390
1402
|
readonly name: Identifier;
|
|
1391
|
-
readonly initializer?:
|
|
1403
|
+
readonly initializer?: JsxAttributeValue;
|
|
1392
1404
|
}
|
|
1405
|
+
export type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
|
|
1393
1406
|
export interface JsxSpreadAttribute extends ObjectLiteralElement {
|
|
1394
1407
|
readonly kind: SyntaxKind.JsxSpreadAttribute;
|
|
1395
1408
|
readonly parent: JsxAttributes;
|
|
@@ -1442,6 +1455,7 @@ declare namespace ts {
|
|
|
1442
1455
|
}
|
|
1443
1456
|
export interface VariableStatement extends Statement {
|
|
1444
1457
|
readonly kind: SyntaxKind.VariableStatement;
|
|
1458
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1445
1459
|
readonly declarationList: VariableDeclarationList;
|
|
1446
1460
|
}
|
|
1447
1461
|
export interface ExpressionStatement extends Statement {
|
|
@@ -1558,11 +1572,13 @@ declare namespace ts {
|
|
|
1558
1572
|
}
|
|
1559
1573
|
export interface ClassDeclaration extends ClassLikeDeclarationBase, DeclarationStatement {
|
|
1560
1574
|
readonly kind: SyntaxKind.ClassDeclaration;
|
|
1575
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1561
1576
|
/** May be undefined in `export default class { ... }`. */
|
|
1562
1577
|
readonly name?: Identifier;
|
|
1563
1578
|
}
|
|
1564
1579
|
export interface ClassExpression extends ClassLikeDeclarationBase, PrimaryExpression {
|
|
1565
1580
|
readonly kind: SyntaxKind.ClassExpression;
|
|
1581
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1566
1582
|
}
|
|
1567
1583
|
export type ClassLikeDeclaration = ClassDeclaration | ClassExpression;
|
|
1568
1584
|
export interface ClassElement extends NamedDeclaration {
|
|
@@ -1572,10 +1588,11 @@ declare namespace ts {
|
|
|
1572
1588
|
export interface TypeElement extends NamedDeclaration {
|
|
1573
1589
|
_typeElementBrand: any;
|
|
1574
1590
|
readonly name?: PropertyName;
|
|
1575
|
-
readonly questionToken?: QuestionToken;
|
|
1591
|
+
readonly questionToken?: QuestionToken | undefined;
|
|
1576
1592
|
}
|
|
1577
1593
|
export interface InterfaceDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1578
1594
|
readonly kind: SyntaxKind.InterfaceDeclaration;
|
|
1595
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1579
1596
|
readonly name: Identifier;
|
|
1580
1597
|
readonly typeParameters?: NodeArray<TypeParameterDeclaration>;
|
|
1581
1598
|
readonly heritageClauses?: NodeArray<HeritageClause>;
|
|
@@ -1589,6 +1606,7 @@ declare namespace ts {
|
|
|
1589
1606
|
}
|
|
1590
1607
|
export interface TypeAliasDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1591
1608
|
readonly kind: SyntaxKind.TypeAliasDeclaration;
|
|
1609
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1592
1610
|
readonly name: Identifier;
|
|
1593
1611
|
readonly typeParameters?: NodeArray<TypeParameterDeclaration>;
|
|
1594
1612
|
readonly type: TypeNode;
|
|
@@ -1601,6 +1619,7 @@ declare namespace ts {
|
|
|
1601
1619
|
}
|
|
1602
1620
|
export interface EnumDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1603
1621
|
readonly kind: SyntaxKind.EnumDeclaration;
|
|
1622
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1604
1623
|
readonly name: Identifier;
|
|
1605
1624
|
readonly members: NodeArray<EnumMember>;
|
|
1606
1625
|
}
|
|
@@ -1609,6 +1628,7 @@ declare namespace ts {
|
|
|
1609
1628
|
export interface ModuleDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1610
1629
|
readonly kind: SyntaxKind.ModuleDeclaration;
|
|
1611
1630
|
readonly parent: ModuleBody | SourceFile;
|
|
1631
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1612
1632
|
readonly name: ModuleName;
|
|
1613
1633
|
readonly body?: ModuleBody | JSDocNamespaceDeclaration;
|
|
1614
1634
|
}
|
|
@@ -1636,6 +1656,7 @@ declare namespace ts {
|
|
|
1636
1656
|
export interface ImportEqualsDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1637
1657
|
readonly kind: SyntaxKind.ImportEqualsDeclaration;
|
|
1638
1658
|
readonly parent: SourceFile | ModuleBlock;
|
|
1659
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1639
1660
|
readonly name: Identifier;
|
|
1640
1661
|
readonly isTypeOnly: boolean;
|
|
1641
1662
|
readonly moduleReference: ModuleReference;
|
|
@@ -1648,6 +1669,7 @@ declare namespace ts {
|
|
|
1648
1669
|
export interface ImportDeclaration extends Statement {
|
|
1649
1670
|
readonly kind: SyntaxKind.ImportDeclaration;
|
|
1650
1671
|
readonly parent: SourceFile | ModuleBlock;
|
|
1672
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1651
1673
|
readonly importClause?: ImportClause;
|
|
1652
1674
|
/** If this is not a StringLiteral it will be a grammar error. */
|
|
1653
1675
|
readonly moduleSpecifier: Expression;
|
|
@@ -1692,6 +1714,7 @@ declare namespace ts {
|
|
|
1692
1714
|
export interface ExportDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1693
1715
|
readonly kind: SyntaxKind.ExportDeclaration;
|
|
1694
1716
|
readonly parent: SourceFile | ModuleBlock;
|
|
1717
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1695
1718
|
readonly isTypeOnly: boolean;
|
|
1696
1719
|
/** Will not be assigned in the case of `export * from "foo";` */
|
|
1697
1720
|
readonly exportClause?: NamedExportBindings;
|
|
@@ -1759,6 +1782,7 @@ declare namespace ts {
|
|
|
1759
1782
|
export interface ExportAssignment extends DeclarationStatement, JSDocContainer {
|
|
1760
1783
|
readonly kind: SyntaxKind.ExportAssignment;
|
|
1761
1784
|
readonly parent: SourceFile;
|
|
1785
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1762
1786
|
readonly isExportEquals?: boolean;
|
|
1763
1787
|
readonly expression: Expression;
|
|
1764
1788
|
}
|
|
@@ -3402,39 +3426,35 @@ declare namespace ts {
|
|
|
3402
3426
|
createComputedPropertyName(expression: Expression): ComputedPropertyName;
|
|
3403
3427
|
updateComputedPropertyName(node: ComputedPropertyName, expression: Expression): ComputedPropertyName;
|
|
3404
3428
|
createTypeParameterDeclaration(modifiers: readonly Modifier[] | undefined, name: string | Identifier, constraint?: TypeNode, defaultType?: TypeNode): TypeParameterDeclaration;
|
|
3405
|
-
/** @deprecated */
|
|
3406
|
-
createTypeParameterDeclaration(name: string | Identifier, constraint?: TypeNode, defaultType?: TypeNode): TypeParameterDeclaration;
|
|
3407
3429
|
updateTypeParameterDeclaration(node: TypeParameterDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration;
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
createParameterDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration;
|
|
3411
|
-
updateParameterDeclaration(node: ParameterDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration;
|
|
3430
|
+
createParameterDeclaration(modifiers: readonly ModifierLike[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration;
|
|
3431
|
+
updateParameterDeclaration(node: ParameterDeclaration, modifiers: readonly ModifierLike[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration;
|
|
3412
3432
|
createDecorator(expression: Expression): Decorator;
|
|
3413
3433
|
updateDecorator(node: Decorator, expression: Expression): Decorator;
|
|
3414
3434
|
createPropertySignature(modifiers: readonly Modifier[] | undefined, name: PropertyName | string, questionToken: QuestionToken | undefined, type: TypeNode | undefined): PropertySignature;
|
|
3415
3435
|
updatePropertySignature(node: PropertySignature, modifiers: readonly Modifier[] | undefined, name: PropertyName, questionToken: QuestionToken | undefined, type: TypeNode | undefined): PropertySignature;
|
|
3416
|
-
createPropertyDeclaration(
|
|
3417
|
-
updatePropertyDeclaration(node: PropertyDeclaration,
|
|
3436
|
+
createPropertyDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
3437
|
+
updatePropertyDeclaration(node: PropertyDeclaration, modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
3418
3438
|
createMethodSignature(modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined): MethodSignature;
|
|
3419
3439
|
updateMethodSignature(node: MethodSignature, modifiers: readonly Modifier[] | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): MethodSignature;
|
|
3420
|
-
createMethodDeclaration(
|
|
3421
|
-
updateMethodDeclaration(node: MethodDeclaration,
|
|
3422
|
-
createConstructorDeclaration(
|
|
3423
|
-
updateConstructorDeclaration(node: ConstructorDeclaration,
|
|
3424
|
-
createGetAccessorDeclaration(
|
|
3425
|
-
updateGetAccessorDeclaration(node: GetAccessorDeclaration,
|
|
3426
|
-
createSetAccessorDeclaration(
|
|
3427
|
-
updateSetAccessorDeclaration(node: SetAccessorDeclaration,
|
|
3440
|
+
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;
|
|
3441
|
+
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;
|
|
3442
|
+
createConstructorDeclaration(modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
3443
|
+
updateConstructorDeclaration(node: ConstructorDeclaration, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
3444
|
+
createGetAccessorDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
3445
|
+
updateGetAccessorDeclaration(node: GetAccessorDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
3446
|
+
createSetAccessorDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
3447
|
+
updateSetAccessorDeclaration(node: SetAccessorDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
3428
3448
|
createCallSignature(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined): CallSignatureDeclaration;
|
|
3429
3449
|
updateCallSignature(node: CallSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): CallSignatureDeclaration;
|
|
3430
3450
|
createConstructSignature(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined): ConstructSignatureDeclaration;
|
|
3431
3451
|
updateConstructSignature(node: ConstructSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructSignatureDeclaration;
|
|
3432
|
-
createIndexSignature(
|
|
3433
|
-
updateIndexSignature(node: IndexSignatureDeclaration,
|
|
3452
|
+
createIndexSignature(modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
3453
|
+
updateIndexSignature(node: IndexSignatureDeclaration, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
3434
3454
|
createTemplateLiteralTypeSpan(type: TypeNode, literal: TemplateMiddle | TemplateTail): TemplateLiteralTypeSpan;
|
|
3435
3455
|
updateTemplateLiteralTypeSpan(node: TemplateLiteralTypeSpan, type: TypeNode, literal: TemplateMiddle | TemplateTail): TemplateLiteralTypeSpan;
|
|
3436
|
-
createClassStaticBlockDeclaration(
|
|
3437
|
-
updateClassStaticBlockDeclaration(node: ClassStaticBlockDeclaration,
|
|
3456
|
+
createClassStaticBlockDeclaration(body: Block): ClassStaticBlockDeclaration;
|
|
3457
|
+
updateClassStaticBlockDeclaration(node: ClassStaticBlockDeclaration, body: Block): ClassStaticBlockDeclaration;
|
|
3438
3458
|
createKeywordTypeNode<TKind extends KeywordTypeSyntaxKind>(kind: TKind): KeywordTypeNode<TKind>;
|
|
3439
3459
|
createTypePredicateNode(assertsModifier: AssertsKeyword | undefined, parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined): TypePredicateNode;
|
|
3440
3460
|
updateTypePredicateNode(node: TypePredicateNode, assertsModifier: AssertsKeyword | undefined, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined): TypePredicateNode;
|
|
@@ -3443,11 +3463,7 @@ declare namespace ts {
|
|
|
3443
3463
|
createFunctionTypeNode(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): FunctionTypeNode;
|
|
3444
3464
|
updateFunctionTypeNode(node: FunctionTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode): FunctionTypeNode;
|
|
3445
3465
|
createConstructorTypeNode(modifiers: readonly Modifier[] | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): ConstructorTypeNode;
|
|
3446
|
-
/** @deprecated */
|
|
3447
|
-
createConstructorTypeNode(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): ConstructorTypeNode;
|
|
3448
3466
|
updateConstructorTypeNode(node: ConstructorTypeNode, modifiers: readonly Modifier[] | undefined, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode): ConstructorTypeNode;
|
|
3449
|
-
/** @deprecated */
|
|
3450
|
-
updateConstructorTypeNode(node: ConstructorTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode): ConstructorTypeNode;
|
|
3451
3467
|
createTypeQueryNode(exprName: EntityName, typeArguments?: readonly TypeNode[]): TypeQueryNode;
|
|
3452
3468
|
updateTypeQueryNode(node: TypeQueryNode, exprName: EntityName, typeArguments?: readonly TypeNode[]): TypeQueryNode;
|
|
3453
3469
|
createTypeLiteralNode(members: readonly TypeElement[] | undefined): TypeLiteralNode;
|
|
@@ -3470,9 +3486,7 @@ declare namespace ts {
|
|
|
3470
3486
|
updateConditionalTypeNode(node: ConditionalTypeNode, checkType: TypeNode, extendsType: TypeNode, trueType: TypeNode, falseType: TypeNode): ConditionalTypeNode;
|
|
3471
3487
|
createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
|
|
3472
3488
|
updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
|
|
3473
|
-
createImportTypeNode(argument: TypeNode, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
|
|
3474
3489
|
createImportTypeNode(argument: TypeNode, assertions?: ImportTypeAssertionContainer, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
|
|
3475
|
-
updateImportTypeNode(node: ImportTypeNode, argument: TypeNode, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean): ImportTypeNode;
|
|
3476
3490
|
updateImportTypeNode(node: ImportTypeNode, argument: TypeNode, assertions: ImportTypeAssertionContainer | undefined, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean): ImportTypeNode;
|
|
3477
3491
|
createParenthesizedType(type: TypeNode): ParenthesizedTypeNode;
|
|
3478
3492
|
updateParenthesizedType(node: ParenthesizedTypeNode, type: TypeNode): ParenthesizedTypeNode;
|
|
@@ -3552,8 +3566,8 @@ declare namespace ts {
|
|
|
3552
3566
|
updateYieldExpression(node: YieldExpression, asteriskToken: AsteriskToken | undefined, expression: Expression | undefined): YieldExpression;
|
|
3553
3567
|
createSpreadElement(expression: Expression): SpreadElement;
|
|
3554
3568
|
updateSpreadElement(node: SpreadElement, expression: Expression): SpreadElement;
|
|
3555
|
-
createClassExpression(
|
|
3556
|
-
updateClassExpression(node: ClassExpression,
|
|
3569
|
+
createClassExpression(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassExpression;
|
|
3570
|
+
updateClassExpression(node: ClassExpression, modifiers: readonly ModifierLike[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassExpression;
|
|
3557
3571
|
createOmittedExpression(): OmittedExpression;
|
|
3558
3572
|
createExpressionWithTypeArguments(expression: Expression, typeArguments: readonly TypeNode[] | undefined): ExpressionWithTypeArguments;
|
|
3559
3573
|
updateExpressionWithTypeArguments(node: ExpressionWithTypeArguments, expression: Expression, typeArguments: readonly TypeNode[] | undefined): ExpressionWithTypeArguments;
|
|
@@ -3608,28 +3622,28 @@ declare namespace ts {
|
|
|
3608
3622
|
updateVariableDeclaration(node: VariableDeclaration, name: BindingName, exclamationToken: ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): VariableDeclaration;
|
|
3609
3623
|
createVariableDeclarationList(declarations: readonly VariableDeclaration[], flags?: NodeFlags): VariableDeclarationList;
|
|
3610
3624
|
updateVariableDeclarationList(node: VariableDeclarationList, declarations: readonly VariableDeclaration[]): VariableDeclarationList;
|
|
3611
|
-
createFunctionDeclaration(
|
|
3612
|
-
updateFunctionDeclaration(node: FunctionDeclaration,
|
|
3613
|
-
createClassDeclaration(
|
|
3614
|
-
updateClassDeclaration(node: ClassDeclaration,
|
|
3615
|
-
createInterfaceDeclaration(
|
|
3616
|
-
updateInterfaceDeclaration(node: InterfaceDeclaration,
|
|
3617
|
-
createTypeAliasDeclaration(
|
|
3618
|
-
updateTypeAliasDeclaration(node: TypeAliasDeclaration,
|
|
3619
|
-
createEnumDeclaration(
|
|
3620
|
-
updateEnumDeclaration(node: EnumDeclaration,
|
|
3621
|
-
createModuleDeclaration(
|
|
3622
|
-
updateModuleDeclaration(node: ModuleDeclaration,
|
|
3625
|
+
createFunctionDeclaration(modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
|
|
3626
|
+
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;
|
|
3627
|
+
createClassDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
3628
|
+
updateClassDeclaration(node: ClassDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
3629
|
+
createInterfaceDeclaration(modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
3630
|
+
updateInterfaceDeclaration(node: InterfaceDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
3631
|
+
createTypeAliasDeclaration(modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
3632
|
+
updateTypeAliasDeclaration(node: TypeAliasDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
3633
|
+
createEnumDeclaration(modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
3634
|
+
updateEnumDeclaration(node: EnumDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
3635
|
+
createModuleDeclaration(modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags): ModuleDeclaration;
|
|
3636
|
+
updateModuleDeclaration(node: ModuleDeclaration, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
3623
3637
|
createModuleBlock(statements: readonly Statement[]): ModuleBlock;
|
|
3624
3638
|
updateModuleBlock(node: ModuleBlock, statements: readonly Statement[]): ModuleBlock;
|
|
3625
3639
|
createCaseBlock(clauses: readonly CaseOrDefaultClause[]): CaseBlock;
|
|
3626
3640
|
updateCaseBlock(node: CaseBlock, clauses: readonly CaseOrDefaultClause[]): CaseBlock;
|
|
3627
3641
|
createNamespaceExportDeclaration(name: string | Identifier): NamespaceExportDeclaration;
|
|
3628
3642
|
updateNamespaceExportDeclaration(node: NamespaceExportDeclaration, name: Identifier): NamespaceExportDeclaration;
|
|
3629
|
-
createImportEqualsDeclaration(
|
|
3630
|
-
updateImportEqualsDeclaration(node: ImportEqualsDeclaration,
|
|
3631
|
-
createImportDeclaration(
|
|
3632
|
-
updateImportDeclaration(node: ImportDeclaration,
|
|
3643
|
+
createImportEqualsDeclaration(modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
3644
|
+
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
3645
|
+
createImportDeclaration(modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
|
|
3646
|
+
updateImportDeclaration(node: ImportDeclaration, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
3633
3647
|
createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3634
3648
|
updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3635
3649
|
createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
@@ -3646,10 +3660,10 @@ declare namespace ts {
|
|
|
3646
3660
|
updateNamedImports(node: NamedImports, elements: readonly ImportSpecifier[]): NamedImports;
|
|
3647
3661
|
createImportSpecifier(isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3648
3662
|
updateImportSpecifier(node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3649
|
-
createExportAssignment(
|
|
3650
|
-
updateExportAssignment(node: ExportAssignment,
|
|
3651
|
-
createExportDeclaration(
|
|
3652
|
-
updateExportDeclaration(node: ExportDeclaration,
|
|
3663
|
+
createExportAssignment(modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
3664
|
+
updateExportAssignment(node: ExportAssignment, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
3665
|
+
createExportDeclaration(modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
|
|
3666
|
+
updateExportDeclaration(node: ExportDeclaration, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
|
|
3653
3667
|
createNamedExports(elements: readonly ExportSpecifier[]): NamedExports;
|
|
3654
3668
|
updateNamedExports(node: NamedExports, elements: readonly ExportSpecifier[]): NamedExports;
|
|
3655
3669
|
createExportSpecifier(isTypeOnly: boolean, propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier;
|
|
@@ -3746,8 +3760,8 @@ declare namespace ts {
|
|
|
3746
3760
|
createJsxOpeningFragment(): JsxOpeningFragment;
|
|
3747
3761
|
createJsxJsxClosingFragment(): JsxClosingFragment;
|
|
3748
3762
|
updateJsxFragment(node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment): JsxFragment;
|
|
3749
|
-
createJsxAttribute(name: Identifier, initializer:
|
|
3750
|
-
updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer:
|
|
3763
|
+
createJsxAttribute(name: Identifier, initializer: JsxAttributeValue | undefined): JsxAttribute;
|
|
3764
|
+
updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer: JsxAttributeValue | undefined): JsxAttribute;
|
|
3751
3765
|
createJsxAttributes(properties: readonly JsxAttributeLike[]): JsxAttributes;
|
|
3752
3766
|
updateJsxAttributes(node: JsxAttributes, properties: readonly JsxAttributeLike[]): JsxAttributes;
|
|
3753
3767
|
createJsxSpreadAttribute(expression: Expression): JsxSpreadAttribute;
|
|
@@ -4055,7 +4069,7 @@ declare namespace ts {
|
|
|
4055
4069
|
NoSpaceIfEmpty = 524288,
|
|
4056
4070
|
SingleElement = 1048576,
|
|
4057
4071
|
SpaceAfterList = 2097152,
|
|
4058
|
-
Modifiers =
|
|
4072
|
+
Modifiers = 2359808,
|
|
4059
4073
|
HeritageClauses = 512,
|
|
4060
4074
|
SingleLineTypeLiteralMembers = 768,
|
|
4061
4075
|
MultiLineTypeLiteralMembers = 32897,
|
|
@@ -4119,9 +4133,12 @@ declare namespace ts {
|
|
|
4119
4133
|
readonly includeInlayParameterNameHintsWhenArgumentMatchesName?: boolean;
|
|
4120
4134
|
readonly includeInlayFunctionParameterTypeHints?: boolean;
|
|
4121
4135
|
readonly includeInlayVariableTypeHints?: boolean;
|
|
4136
|
+
readonly includeInlayVariableTypeHintsWhenTypeMatchesName?: boolean;
|
|
4122
4137
|
readonly includeInlayPropertyDeclarationTypeHints?: boolean;
|
|
4123
4138
|
readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
|
|
4124
4139
|
readonly includeInlayEnumMemberValueHints?: boolean;
|
|
4140
|
+
readonly allowRenameOfImportPath?: boolean;
|
|
4141
|
+
readonly autoImportFileExcludePatterns?: string[];
|
|
4125
4142
|
}
|
|
4126
4143
|
/** Represents a bigint literal value without requiring bigint support */
|
|
4127
4144
|
export interface PseudoBigInt {
|
|
@@ -4138,7 +4155,7 @@ declare namespace ts {
|
|
|
4138
4155
|
Changed = 1,
|
|
4139
4156
|
Deleted = 2
|
|
4140
4157
|
}
|
|
4141
|
-
export type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind) => void;
|
|
4158
|
+
export type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind, modifiedTime?: Date) => void;
|
|
4142
4159
|
export type DirectoryWatcherCallback = (fileName: string) => void;
|
|
4143
4160
|
export interface System {
|
|
4144
4161
|
args: string[];
|
|
@@ -4349,6 +4366,8 @@ declare namespace ts {
|
|
|
4349
4366
|
function symbolName(symbol: Symbol): string;
|
|
4350
4367
|
function getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Identifier | PrivateIdentifier | undefined;
|
|
4351
4368
|
function getNameOfDeclaration(declaration: Declaration | Expression | undefined): DeclarationName | undefined;
|
|
4369
|
+
function getDecorators(node: HasDecorators): readonly Decorator[] | undefined;
|
|
4370
|
+
function getModifiers(node: HasModifiers): readonly Modifier[] | undefined;
|
|
4352
4371
|
/**
|
|
4353
4372
|
* Gets the JSDoc parameter tags for the node if present.
|
|
4354
4373
|
*
|
|
@@ -4482,6 +4501,7 @@ declare namespace ts {
|
|
|
4482
4501
|
function isClassElement(node: Node): node is ClassElement;
|
|
4483
4502
|
function isClassLike(node: Node): node is ClassLikeDeclaration;
|
|
4484
4503
|
function isAccessor(node: Node): node is AccessorDeclaration;
|
|
4504
|
+
function isModifierLike(node: Node): node is ModifierLike;
|
|
4485
4505
|
function isTypeElement(node: Node): node is TypeElement;
|
|
4486
4506
|
function isClassOrTypeElement(node: Node): node is ClassElement | TypeElement;
|
|
4487
4507
|
function isObjectLiteralElementLike(node: Node): node is ObjectLiteralElementLike;
|
|
@@ -4510,6 +4530,8 @@ declare namespace ts {
|
|
|
4510
4530
|
function isObjectLiteralElement(node: Node): node is ObjectLiteralElement;
|
|
4511
4531
|
function isStringLiteralLike(node: Node): node is StringLiteralLike;
|
|
4512
4532
|
function isJSDocLinkLike(node: Node): node is JSDocLink | JSDocLinkCode | JSDocLinkPlain;
|
|
4533
|
+
function hasRestParameter(s: SignatureDeclaration | JSDocSignature): boolean;
|
|
4534
|
+
function isRestParameter(node: ParameterDeclaration | JSDocParameterTag): boolean;
|
|
4513
4535
|
}
|
|
4514
4536
|
declare namespace ts {
|
|
4515
4537
|
const factory: NodeFactory;
|
|
@@ -4720,6 +4742,7 @@ declare namespace ts {
|
|
|
4720
4742
|
function isImportEqualsDeclaration(node: Node): node is ImportEqualsDeclaration;
|
|
4721
4743
|
function isImportDeclaration(node: Node): node is ImportDeclaration;
|
|
4722
4744
|
function isImportClause(node: Node): node is ImportClause;
|
|
4745
|
+
function isImportTypeAssertionContainer(node: Node): node is ImportTypeAssertionContainer;
|
|
4723
4746
|
function isAssertClause(node: Node): node is AssertClause;
|
|
4724
4747
|
function isAssertEntry(node: Node): node is AssertEntry;
|
|
4725
4748
|
function isNamespaceImport(node: Node): node is NamespaceImport;
|
|
@@ -5098,6 +5121,31 @@ declare namespace ts {
|
|
|
5098
5121
|
export function formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): string;
|
|
5099
5122
|
export function formatDiagnosticsWithColorAndContext(diagnostics: readonly Diagnostic[], host: FormatDiagnosticsHost): string;
|
|
5100
5123
|
export function flattenDiagnosticMessageText(diag: string | DiagnosticMessageChain | undefined, newLine: string, indent?: number): string;
|
|
5124
|
+
/**
|
|
5125
|
+
* Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly
|
|
5126
|
+
* provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.
|
|
5127
|
+
*/
|
|
5128
|
+
export function getModeForFileReference(ref: FileReference | string, containingFileMode: SourceFile["impliedNodeFormat"]): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
|
5129
|
+
/**
|
|
5130
|
+
* Calculates the final resolution mode for an import at some index within a file's imports list. This is generally the explicitly
|
|
5131
|
+
* 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).
|
|
5132
|
+
* If you have an actual import node, prefer using getModeForUsageLocation on the reference string node.
|
|
5133
|
+
* @param file File to fetch the resolution mode within
|
|
5134
|
+
* @param index Index into the file's complete resolution list to get the resolution of - this is a concatenation of the file's imports and module augmentations
|
|
5135
|
+
*/
|
|
5136
|
+
export function getModeForResolutionAtIndex(file: SourceFile, index: number): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
|
5137
|
+
/**
|
|
5138
|
+
* Calculates the final resolution mode for a given module reference node. This is generally the explicitly provided resolution mode, if
|
|
5139
|
+
* one exists, or the mode of the containing source file. (Excepting import=require, which is always commonjs, and dynamic import, which is always esm).
|
|
5140
|
+
* Notably, this function always returns `undefined` if the containing file has an `undefined` `impliedNodeFormat` - this field is only set when
|
|
5141
|
+
* `moduleResolution` is `node16`+.
|
|
5142
|
+
* @param file The file the import or import-like reference is contained within
|
|
5143
|
+
* @param usage The module reference string
|
|
5144
|
+
* @returns The final resolution mode of the import
|
|
5145
|
+
*/
|
|
5146
|
+
export function getModeForUsageLocation(file: {
|
|
5147
|
+
impliedNodeFormat?: SourceFile["impliedNodeFormat"];
|
|
5148
|
+
}, usage: StringLiteralLike): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
|
5101
5149
|
export function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
|
|
5102
5150
|
/**
|
|
5103
5151
|
* A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
|
|
@@ -5871,6 +5919,8 @@ declare namespace ts {
|
|
|
5871
5919
|
getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined;
|
|
5872
5920
|
getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined;
|
|
5873
5921
|
getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined;
|
|
5922
|
+
getRenameInfo(fileName: string, position: number, preferences: UserPreferences): RenameInfo;
|
|
5923
|
+
/** @deprecated Use the signature with `UserPreferences` instead. */
|
|
5874
5924
|
getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo;
|
|
5875
5925
|
findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): readonly RenameLocation[] | undefined;
|
|
5876
5926
|
getSmartSelectionRange(fileName: string, position: number): SelectionRange;
|
|
@@ -6250,6 +6300,7 @@ declare namespace ts {
|
|
|
6250
6300
|
Insert = "insert",
|
|
6251
6301
|
Remove = "remove"
|
|
6252
6302
|
}
|
|
6303
|
+
/** @deprecated - consider using EditorSettings instead */
|
|
6253
6304
|
interface EditorOptions {
|
|
6254
6305
|
BaseIndentSize?: number;
|
|
6255
6306
|
IndentSize: number;
|
|
@@ -6267,6 +6318,7 @@ declare namespace ts {
|
|
|
6267
6318
|
indentStyle?: IndentStyle;
|
|
6268
6319
|
trimTrailingWhitespace?: boolean;
|
|
6269
6320
|
}
|
|
6321
|
+
/** @deprecated - consider using FormatCodeSettings instead */
|
|
6270
6322
|
interface FormatCodeOptions extends EditorOptions {
|
|
6271
6323
|
InsertSpaceAfterCommaDelimiter: boolean;
|
|
6272
6324
|
InsertSpaceAfterSemicolonInForStatements: boolean;
|
|
@@ -6392,6 +6444,9 @@ declare namespace ts {
|
|
|
6392
6444
|
canRename: false;
|
|
6393
6445
|
localizedErrorMessage: string;
|
|
6394
6446
|
}
|
|
6447
|
+
/**
|
|
6448
|
+
* @deprecated Use `UserPreferences` instead.
|
|
6449
|
+
*/
|
|
6395
6450
|
interface RenameInfoOptions {
|
|
6396
6451
|
readonly allowRenameOfImportPath?: boolean;
|
|
6397
6452
|
}
|
|
@@ -6983,33 +7038,69 @@ declare namespace ts {
|
|
|
6983
7038
|
(node: TypeParameterDeclaration, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration;
|
|
6984
7039
|
};
|
|
6985
7040
|
/** @deprecated Use `factory.createParameterDeclaration` or the factory supplied by your transformation context instead. */
|
|
6986
|
-
const createParameter:
|
|
7041
|
+
const createParameter: {
|
|
7042
|
+
(modifiers: readonly ModifierLike[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken | undefined, type?: TypeNode | undefined, initializer?: Expression | undefined): ParameterDeclaration;
|
|
7043
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken | undefined, type?: TypeNode | undefined, initializer?: Expression | undefined): ParameterDeclaration;
|
|
7044
|
+
};
|
|
6987
7045
|
/** @deprecated Use `factory.updateParameterDeclaration` or the factory supplied by your transformation context instead. */
|
|
6988
|
-
const updateParameter:
|
|
7046
|
+
const updateParameter: {
|
|
7047
|
+
(node: ParameterDeclaration, modifiers: readonly ModifierLike[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration;
|
|
7048
|
+
(node: ParameterDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration;
|
|
7049
|
+
};
|
|
6989
7050
|
/** @deprecated Use `factory.createDecorator` or the factory supplied by your transformation context instead. */
|
|
6990
7051
|
const createDecorator: (expression: Expression) => Decorator;
|
|
6991
7052
|
/** @deprecated Use `factory.updateDecorator` or the factory supplied by your transformation context instead. */
|
|
6992
7053
|
const updateDecorator: (node: Decorator, expression: Expression) => Decorator;
|
|
6993
7054
|
/** @deprecated Use `factory.createPropertyDeclaration` or the factory supplied by your transformation context instead. */
|
|
6994
|
-
const createProperty:
|
|
7055
|
+
const createProperty: {
|
|
7056
|
+
(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7057
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7058
|
+
};
|
|
6995
7059
|
/** @deprecated Use `factory.updatePropertyDeclaration` or the factory supplied by your transformation context instead. */
|
|
6996
|
-
const updateProperty:
|
|
7060
|
+
const updateProperty: {
|
|
7061
|
+
(node: PropertyDeclaration, modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7062
|
+
(node: PropertyDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7063
|
+
};
|
|
6997
7064
|
/** @deprecated Use `factory.createMethodDeclaration` or the factory supplied by your transformation context instead. */
|
|
6998
|
-
const createMethod:
|
|
7065
|
+
const createMethod: {
|
|
7066
|
+
(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;
|
|
7067
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
|
|
7068
|
+
};
|
|
6999
7069
|
/** @deprecated Use `factory.updateMethodDeclaration` or the factory supplied by your transformation context instead. */
|
|
7000
|
-
const updateMethod:
|
|
7070
|
+
const updateMethod: {
|
|
7071
|
+
(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;
|
|
7072
|
+
(node: MethodDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, asteriskToken: AsteriskToken | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
|
|
7073
|
+
};
|
|
7001
7074
|
/** @deprecated Use `factory.createConstructorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7002
|
-
const createConstructor:
|
|
7075
|
+
const createConstructor: {
|
|
7076
|
+
(modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7077
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7078
|
+
};
|
|
7003
7079
|
/** @deprecated Use `factory.updateConstructorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7004
|
-
const updateConstructor:
|
|
7080
|
+
const updateConstructor: {
|
|
7081
|
+
(node: ConstructorDeclaration, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7082
|
+
(node: ConstructorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7083
|
+
};
|
|
7005
7084
|
/** @deprecated Use `factory.createGetAccessorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7006
|
-
const createGetAccessor:
|
|
7085
|
+
const createGetAccessor: {
|
|
7086
|
+
(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7087
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7088
|
+
};
|
|
7007
7089
|
/** @deprecated Use `factory.updateGetAccessorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7008
|
-
const updateGetAccessor:
|
|
7090
|
+
const updateGetAccessor: {
|
|
7091
|
+
(node: GetAccessorDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7092
|
+
(node: GetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7093
|
+
};
|
|
7009
7094
|
/** @deprecated Use `factory.createSetAccessorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7010
|
-
const createSetAccessor:
|
|
7095
|
+
const createSetAccessor: {
|
|
7096
|
+
(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7097
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7098
|
+
};
|
|
7011
7099
|
/** @deprecated Use `factory.updateSetAccessorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7012
|
-
const updateSetAccessor:
|
|
7100
|
+
const updateSetAccessor: {
|
|
7101
|
+
(node: SetAccessorDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7102
|
+
(node: SetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7103
|
+
};
|
|
7013
7104
|
/** @deprecated Use `factory.createCallSignature` or the factory supplied by your transformation context instead. */
|
|
7014
7105
|
const createCallSignature: (typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined) => CallSignatureDeclaration;
|
|
7015
7106
|
/** @deprecated Use `factory.updateCallSignature` or the factory supplied by your transformation context instead. */
|
|
@@ -7019,7 +7110,10 @@ declare namespace ts {
|
|
|
7019
7110
|
/** @deprecated Use `factory.updateConstructSignature` or the factory supplied by your transformation context instead. */
|
|
7020
7111
|
const updateConstructSignature: (node: ConstructSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined) => ConstructSignatureDeclaration;
|
|
7021
7112
|
/** @deprecated Use `factory.updateIndexSignature` or the factory supplied by your transformation context instead. */
|
|
7022
|
-
const updateIndexSignature:
|
|
7113
|
+
const updateIndexSignature: {
|
|
7114
|
+
(node: IndexSignatureDeclaration, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
7115
|
+
(node: IndexSignatureDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
7116
|
+
};
|
|
7023
7117
|
/** @deprecated Use `factory.createKeywordTypeNode` or the factory supplied by your transformation context instead. */
|
|
7024
7118
|
const createKeywordTypeNode: <TKind extends KeywordTypeSyntaxKind>(kind: TKind) => KeywordTypeNode<TKind>;
|
|
7025
7119
|
/** @deprecated Use `factory.createTypePredicateNode` or the factory supplied by your transformation context instead. */
|
|
@@ -7080,13 +7174,14 @@ declare namespace ts {
|
|
|
7080
7174
|
const updateInferTypeNode: (node: InferTypeNode, typeParameter: TypeParameterDeclaration) => InferTypeNode;
|
|
7081
7175
|
/** @deprecated Use `factory.createImportTypeNode` or the factory supplied by your transformation context instead. */
|
|
7082
7176
|
const createImportTypeNode: {
|
|
7083
|
-
(argument: TypeNode, qualifier?: EntityName | undefined, typeArguments?: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7084
7177
|
(argument: TypeNode, assertions?: ImportTypeAssertionContainer | undefined, qualifier?: EntityName | undefined, typeArguments?: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7178
|
+
(argument: TypeNode, assertions?: ImportTypeAssertionContainer | undefined, qualifier?: EntityName | undefined, typeArguments?: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7179
|
+
(argument: TypeNode, qualifier?: EntityName | undefined, typeArguments?: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7085
7180
|
};
|
|
7086
7181
|
/** @deprecated Use `factory.updateImportTypeNode` or the factory supplied by your transformation context instead. */
|
|
7087
7182
|
const updateImportTypeNode: {
|
|
7088
|
-
(node: ImportTypeNode, argument: TypeNode, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7089
7183
|
(node: ImportTypeNode, argument: TypeNode, assertions: ImportTypeAssertionContainer | undefined, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7184
|
+
(node: ImportTypeNode, argument: TypeNode, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7090
7185
|
};
|
|
7091
7186
|
/** @deprecated Use `factory.createParenthesizedType` or the factory supplied by your transformation context instead. */
|
|
7092
7187
|
const createParenthesizedType: (type: TypeNode) => ParenthesizedTypeNode;
|
|
@@ -7331,29 +7426,65 @@ declare namespace ts {
|
|
|
7331
7426
|
/** @deprecated Use `factory.updateVariableDeclarationList` or the factory supplied by your transformation context instead. */
|
|
7332
7427
|
const updateVariableDeclarationList: (node: VariableDeclarationList, declarations: readonly VariableDeclaration[]) => VariableDeclarationList;
|
|
7333
7428
|
/** @deprecated Use `factory.createFunctionDeclaration` or the factory supplied by your transformation context instead. */
|
|
7334
|
-
const createFunctionDeclaration:
|
|
7429
|
+
const createFunctionDeclaration: {
|
|
7430
|
+
(modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
|
|
7431
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
|
|
7432
|
+
};
|
|
7335
7433
|
/** @deprecated Use `factory.updateFunctionDeclaration` or the factory supplied by your transformation context instead. */
|
|
7336
|
-
const updateFunctionDeclaration:
|
|
7434
|
+
const updateFunctionDeclaration: {
|
|
7435
|
+
(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;
|
|
7436
|
+
(node: FunctionDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, asteriskToken: AsteriskToken | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
|
|
7437
|
+
};
|
|
7337
7438
|
/** @deprecated Use `factory.createClassDeclaration` or the factory supplied by your transformation context instead. */
|
|
7338
|
-
const createClassDeclaration:
|
|
7439
|
+
const createClassDeclaration: {
|
|
7440
|
+
(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
7441
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
7442
|
+
};
|
|
7339
7443
|
/** @deprecated Use `factory.updateClassDeclaration` or the factory supplied by your transformation context instead. */
|
|
7340
|
-
const updateClassDeclaration:
|
|
7444
|
+
const updateClassDeclaration: {
|
|
7445
|
+
(node: ClassDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
7446
|
+
(node: ClassDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
7447
|
+
};
|
|
7341
7448
|
/** @deprecated Use `factory.createInterfaceDeclaration` or the factory supplied by your transformation context instead. */
|
|
7342
|
-
const createInterfaceDeclaration:
|
|
7449
|
+
const createInterfaceDeclaration: {
|
|
7450
|
+
(modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7451
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7452
|
+
};
|
|
7343
7453
|
/** @deprecated Use `factory.updateInterfaceDeclaration` or the factory supplied by your transformation context instead. */
|
|
7344
|
-
const updateInterfaceDeclaration:
|
|
7454
|
+
const updateInterfaceDeclaration: {
|
|
7455
|
+
(node: InterfaceDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7456
|
+
(node: InterfaceDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7457
|
+
};
|
|
7345
7458
|
/** @deprecated Use `factory.createTypeAliasDeclaration` or the factory supplied by your transformation context instead. */
|
|
7346
|
-
const createTypeAliasDeclaration:
|
|
7459
|
+
const createTypeAliasDeclaration: {
|
|
7460
|
+
(modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7461
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7462
|
+
};
|
|
7347
7463
|
/** @deprecated Use `factory.updateTypeAliasDeclaration` or the factory supplied by your transformation context instead. */
|
|
7348
|
-
const updateTypeAliasDeclaration:
|
|
7464
|
+
const updateTypeAliasDeclaration: {
|
|
7465
|
+
(node: TypeAliasDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7466
|
+
(node: TypeAliasDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7467
|
+
};
|
|
7349
7468
|
/** @deprecated Use `factory.createEnumDeclaration` or the factory supplied by your transformation context instead. */
|
|
7350
|
-
const createEnumDeclaration:
|
|
7469
|
+
const createEnumDeclaration: {
|
|
7470
|
+
(modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7471
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7472
|
+
};
|
|
7351
7473
|
/** @deprecated Use `factory.updateEnumDeclaration` or the factory supplied by your transformation context instead. */
|
|
7352
|
-
const updateEnumDeclaration:
|
|
7474
|
+
const updateEnumDeclaration: {
|
|
7475
|
+
(node: EnumDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7476
|
+
(node: EnumDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7477
|
+
};
|
|
7353
7478
|
/** @deprecated Use `factory.createModuleDeclaration` or the factory supplied by your transformation context instead. */
|
|
7354
|
-
const createModuleDeclaration:
|
|
7479
|
+
const createModuleDeclaration: {
|
|
7480
|
+
(modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags | undefined): ModuleDeclaration;
|
|
7481
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags | undefined): ModuleDeclaration;
|
|
7482
|
+
};
|
|
7355
7483
|
/** @deprecated Use `factory.updateModuleDeclaration` or the factory supplied by your transformation context instead. */
|
|
7356
|
-
const updateModuleDeclaration:
|
|
7484
|
+
const updateModuleDeclaration: {
|
|
7485
|
+
(node: ModuleDeclaration, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
7486
|
+
(node: ModuleDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
7487
|
+
};
|
|
7357
7488
|
/** @deprecated Use `factory.createModuleBlock` or the factory supplied by your transformation context instead. */
|
|
7358
7489
|
const createModuleBlock: (statements: readonly Statement[]) => ModuleBlock;
|
|
7359
7490
|
/** @deprecated Use `factory.updateModuleBlock` or the factory supplied by your transformation context instead. */
|
|
@@ -7367,13 +7498,25 @@ declare namespace ts {
|
|
|
7367
7498
|
/** @deprecated Use `factory.updateNamespaceExportDeclaration` or the factory supplied by your transformation context instead. */
|
|
7368
7499
|
const updateNamespaceExportDeclaration: (node: NamespaceExportDeclaration, name: Identifier) => NamespaceExportDeclaration;
|
|
7369
7500
|
/** @deprecated Use `factory.createImportEqualsDeclaration` or the factory supplied by your transformation context instead. */
|
|
7370
|
-
const createImportEqualsDeclaration:
|
|
7501
|
+
const createImportEqualsDeclaration: {
|
|
7502
|
+
(modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7503
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7504
|
+
};
|
|
7371
7505
|
/** @deprecated Use `factory.updateImportEqualsDeclaration` or the factory supplied by your transformation context instead. */
|
|
7372
|
-
const updateImportEqualsDeclaration:
|
|
7506
|
+
const updateImportEqualsDeclaration: {
|
|
7507
|
+
(node: ImportEqualsDeclaration, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7508
|
+
(node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7509
|
+
};
|
|
7373
7510
|
/** @deprecated Use `factory.createImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
7374
|
-
const createImportDeclaration:
|
|
7511
|
+
const createImportDeclaration: {
|
|
7512
|
+
(modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause | undefined): ImportDeclaration;
|
|
7513
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause | undefined): ImportDeclaration;
|
|
7514
|
+
};
|
|
7375
7515
|
/** @deprecated Use `factory.updateImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
7376
|
-
const updateImportDeclaration:
|
|
7516
|
+
const updateImportDeclaration: {
|
|
7517
|
+
(node: ImportDeclaration, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
7518
|
+
(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
7519
|
+
};
|
|
7377
7520
|
/** @deprecated Use `factory.createNamespaceImport` or the factory supplied by your transformation context instead. */
|
|
7378
7521
|
const createNamespaceImport: (name: Identifier) => NamespaceImport;
|
|
7379
7522
|
/** @deprecated Use `factory.updateNamespaceImport` or the factory supplied by your transformation context instead. */
|
|
@@ -7387,9 +7530,15 @@ declare namespace ts {
|
|
|
7387
7530
|
/** @deprecated Use `factory.updateImportSpecifier` or the factory supplied by your transformation context instead. */
|
|
7388
7531
|
const updateImportSpecifier: (node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier) => ImportSpecifier;
|
|
7389
7532
|
/** @deprecated Use `factory.createExportAssignment` or the factory supplied by your transformation context instead. */
|
|
7390
|
-
const createExportAssignment:
|
|
7533
|
+
const createExportAssignment: {
|
|
7534
|
+
(modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
7535
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
7536
|
+
};
|
|
7391
7537
|
/** @deprecated Use `factory.updateExportAssignment` or the factory supplied by your transformation context instead. */
|
|
7392
|
-
const updateExportAssignment:
|
|
7538
|
+
const updateExportAssignment: {
|
|
7539
|
+
(node: ExportAssignment, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
7540
|
+
(node: ExportAssignment, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
7541
|
+
};
|
|
7393
7542
|
/** @deprecated Use `factory.createNamedExports` or the factory supplied by your transformation context instead. */
|
|
7394
7543
|
const createNamedExports: (elements: readonly ExportSpecifier[]) => NamedExports;
|
|
7395
7544
|
/** @deprecated Use `factory.updateNamedExports` or the factory supplied by your transformation context instead. */
|
|
@@ -7479,9 +7628,9 @@ declare namespace ts {
|
|
|
7479
7628
|
/** @deprecated Use `factory.updateJsxFragment` or the factory supplied by your transformation context instead. */
|
|
7480
7629
|
const updateJsxFragment: (node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment) => JsxFragment;
|
|
7481
7630
|
/** @deprecated Use `factory.createJsxAttribute` or the factory supplied by your transformation context instead. */
|
|
7482
|
-
const createJsxAttribute: (name: Identifier, initializer:
|
|
7631
|
+
const createJsxAttribute: (name: Identifier, initializer: JsxAttributeValue | undefined) => JsxAttribute;
|
|
7483
7632
|
/** @deprecated Use `factory.updateJsxAttribute` or the factory supplied by your transformation context instead. */
|
|
7484
|
-
const updateJsxAttribute: (node: JsxAttribute, name: Identifier, initializer:
|
|
7633
|
+
const updateJsxAttribute: (node: JsxAttribute, name: Identifier, initializer: JsxAttributeValue | undefined) => JsxAttribute;
|
|
7485
7634
|
/** @deprecated Use `factory.createJsxAttributes` or the factory supplied by your transformation context instead. */
|
|
7486
7635
|
const createJsxAttributes: (properties: readonly JsxAttributeLike[]) => JsxAttributes;
|
|
7487
7636
|
/** @deprecated Use `factory.updateJsxAttributes` or the factory supplied by your transformation context instead. */
|
|
@@ -7693,8 +7842,12 @@ declare namespace ts {
|
|
|
7693
7842
|
* @deprecated Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`.
|
|
7694
7843
|
*/
|
|
7695
7844
|
const getMutableClone: <T extends Node>(node: T) => T;
|
|
7845
|
+
}
|
|
7846
|
+
declare namespace ts {
|
|
7696
7847
|
/** @deprecated Use `isTypeAssertionExpression` instead. */
|
|
7697
7848
|
const isTypeAssertion: (node: Node) => node is TypeAssertion;
|
|
7849
|
+
}
|
|
7850
|
+
declare namespace ts {
|
|
7698
7851
|
/**
|
|
7699
7852
|
* @deprecated Use `ts.ReadonlyESMap<K, V>` instead.
|
|
7700
7853
|
*/
|
|
@@ -7705,10 +7858,297 @@ declare namespace ts {
|
|
|
7705
7858
|
*/
|
|
7706
7859
|
interface Map<T> extends ESMap<string, T> {
|
|
7707
7860
|
}
|
|
7861
|
+
}
|
|
7862
|
+
declare namespace ts {
|
|
7708
7863
|
/**
|
|
7709
7864
|
* @deprecated Use `isMemberName` instead.
|
|
7710
7865
|
*/
|
|
7711
7866
|
const isIdentifierOrPrivateIdentifier: (node: Node) => node is MemberName;
|
|
7712
7867
|
}
|
|
7868
|
+
declare namespace ts {
|
|
7869
|
+
interface NodeFactory {
|
|
7870
|
+
/** @deprecated Use the overload that accepts 'modifiers' */
|
|
7871
|
+
createConstructorTypeNode(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): ConstructorTypeNode;
|
|
7872
|
+
/** @deprecated Use the overload that accepts 'modifiers' */
|
|
7873
|
+
updateConstructorTypeNode(node: ConstructorTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode): ConstructorTypeNode;
|
|
7874
|
+
}
|
|
7875
|
+
}
|
|
7876
|
+
declare namespace ts {
|
|
7877
|
+
interface NodeFactory {
|
|
7878
|
+
createImportTypeNode(argument: TypeNode, assertions?: ImportTypeAssertionContainer, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
|
|
7879
|
+
/** @deprecated Use the overload that accepts 'assertions' */
|
|
7880
|
+
createImportTypeNode(argument: TypeNode, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
|
|
7881
|
+
/** @deprecated Use the overload that accepts 'assertions' */
|
|
7882
|
+
updateImportTypeNode(node: ImportTypeNode, argument: TypeNode, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean): ImportTypeNode;
|
|
7883
|
+
}
|
|
7884
|
+
}
|
|
7885
|
+
declare namespace ts {
|
|
7886
|
+
interface NodeFactory {
|
|
7887
|
+
/** @deprecated Use the overload that accepts 'modifiers' */
|
|
7888
|
+
createTypeParameterDeclaration(name: string | Identifier, constraint?: TypeNode, defaultType?: TypeNode): TypeParameterDeclaration;
|
|
7889
|
+
/** @deprecated Use the overload that accepts 'modifiers' */
|
|
7890
|
+
updateTypeParameterDeclaration(node: TypeParameterDeclaration, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration;
|
|
7891
|
+
}
|
|
7892
|
+
}
|
|
7893
|
+
declare namespace ts {
|
|
7894
|
+
interface Node {
|
|
7895
|
+
/** @deprecated `decorators` has been merged with `modifiers` on the declarations that support decorators. */
|
|
7896
|
+
readonly decorators?: NodeArray<Decorator> | undefined;
|
|
7897
|
+
/** @deprecated `modifiers` has been removed from `Node` and moved to the specific `Node` subtypes that support them. */
|
|
7898
|
+
readonly modifiers?: NodeArray<ModifierLike> | undefined;
|
|
7899
|
+
}
|
|
7900
|
+
interface PropertySignature {
|
|
7901
|
+
/** @deprecated A property signature cannot have an initializer */
|
|
7902
|
+
readonly initializer?: Expression | undefined;
|
|
7903
|
+
}
|
|
7904
|
+
interface PropertyAssignment {
|
|
7905
|
+
/** @deprecated A property assignment cannot have a question token */
|
|
7906
|
+
readonly questionToken?: QuestionToken | undefined;
|
|
7907
|
+
/** @deprecated A property assignment cannot have an exclamation token */
|
|
7908
|
+
readonly exclamationToken?: ExclamationToken | undefined;
|
|
7909
|
+
}
|
|
7910
|
+
interface ShorthandPropertyAssignment {
|
|
7911
|
+
/** @deprecated A shorthand property assignment cannot have modifiers */
|
|
7912
|
+
readonly modifiers?: NodeArray<Modifier> | undefined;
|
|
7913
|
+
/** @deprecated A shorthand property assignment cannot have a question token */
|
|
7914
|
+
readonly questionToken?: QuestionToken | undefined;
|
|
7915
|
+
/** @deprecated A shorthand property assignment cannot have an exclamation token */
|
|
7916
|
+
readonly exclamationToken?: ExclamationToken | undefined;
|
|
7917
|
+
}
|
|
7918
|
+
interface FunctionTypeNode {
|
|
7919
|
+
/** @deprecated A function type cannot have modifiers */
|
|
7920
|
+
readonly modifiers?: NodeArray<Modifier> | undefined;
|
|
7921
|
+
}
|
|
7922
|
+
interface NodeFactory {
|
|
7923
|
+
/**
|
|
7924
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7925
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7926
|
+
* an overload that removes the parameter entirely.
|
|
7927
|
+
*/
|
|
7928
|
+
createParameterDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration;
|
|
7929
|
+
/**
|
|
7930
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7931
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7932
|
+
* an overload that removes the parameter entirely.
|
|
7933
|
+
*/
|
|
7934
|
+
updateParameterDeclaration(node: ParameterDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration;
|
|
7935
|
+
/**
|
|
7936
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7937
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7938
|
+
* an overload that removes the parameter entirely.
|
|
7939
|
+
*/
|
|
7940
|
+
createPropertyDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7941
|
+
/**
|
|
7942
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7943
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7944
|
+
* an overload that removes the parameter entirely.
|
|
7945
|
+
*/
|
|
7946
|
+
updatePropertyDeclaration(node: PropertyDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7947
|
+
/**
|
|
7948
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7949
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7950
|
+
* an overload that removes the parameter entirely.
|
|
7951
|
+
*/
|
|
7952
|
+
createMethodDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
|
|
7953
|
+
/**
|
|
7954
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7955
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7956
|
+
* an overload that removes the parameter entirely.
|
|
7957
|
+
*/
|
|
7958
|
+
updateMethodDeclaration(node: MethodDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, asteriskToken: AsteriskToken | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
|
|
7959
|
+
/**
|
|
7960
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7961
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7962
|
+
* an overload that removes the parameter entirely.
|
|
7963
|
+
*/
|
|
7964
|
+
createConstructorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7965
|
+
/**
|
|
7966
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7967
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7968
|
+
* an overload that removes the parameter entirely.
|
|
7969
|
+
*/
|
|
7970
|
+
updateConstructorDeclaration(node: ConstructorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7971
|
+
/**
|
|
7972
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7973
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7974
|
+
* an overload that removes the parameter entirely.
|
|
7975
|
+
*/
|
|
7976
|
+
createGetAccessorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7977
|
+
/**
|
|
7978
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7979
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7980
|
+
* an overload that removes the parameter entirely.
|
|
7981
|
+
*/
|
|
7982
|
+
updateGetAccessorDeclaration(node: GetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7983
|
+
/**
|
|
7984
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7985
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7986
|
+
* an overload that removes the parameter entirely.
|
|
7987
|
+
*/
|
|
7988
|
+
createSetAccessorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7989
|
+
/**
|
|
7990
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7991
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7992
|
+
* an overload that removes the parameter entirely.
|
|
7993
|
+
*/
|
|
7994
|
+
updateSetAccessorDeclaration(node: SetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7995
|
+
/**
|
|
7996
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7997
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7998
|
+
* an overload that removes the parameter entirely.
|
|
7999
|
+
*/
|
|
8000
|
+
createIndexSignature(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
8001
|
+
/**
|
|
8002
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8003
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8004
|
+
* an overload that removes the parameter entirely.
|
|
8005
|
+
*/
|
|
8006
|
+
updateIndexSignature(node: IndexSignatureDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
8007
|
+
/**
|
|
8008
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8009
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8010
|
+
* an overload that removes the parameter entirely.
|
|
8011
|
+
*/
|
|
8012
|
+
createClassStaticBlockDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, body: Block): ClassStaticBlockDeclaration;
|
|
8013
|
+
/**
|
|
8014
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8015
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8016
|
+
* an overload that removes the parameter entirely.
|
|
8017
|
+
*/
|
|
8018
|
+
updateClassStaticBlockDeclaration(node: ClassStaticBlockDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, body: Block): ClassStaticBlockDeclaration;
|
|
8019
|
+
/**
|
|
8020
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8021
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8022
|
+
* an overload that removes the parameter entirely.
|
|
8023
|
+
*/
|
|
8024
|
+
createClassExpression(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassExpression;
|
|
8025
|
+
/**
|
|
8026
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8027
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8028
|
+
* an overload that removes the parameter entirely.
|
|
8029
|
+
*/
|
|
8030
|
+
updateClassExpression(node: ClassExpression, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassExpression;
|
|
8031
|
+
/**
|
|
8032
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8033
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8034
|
+
* an overload that removes the parameter entirely.
|
|
8035
|
+
*/
|
|
8036
|
+
createFunctionDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
|
|
8037
|
+
/**
|
|
8038
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8039
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8040
|
+
* an overload that removes the parameter entirely.
|
|
8041
|
+
*/
|
|
8042
|
+
updateFunctionDeclaration(node: FunctionDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, asteriskToken: AsteriskToken | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
|
|
8043
|
+
/**
|
|
8044
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8045
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8046
|
+
* an overload that removes the parameter entirely.
|
|
8047
|
+
*/
|
|
8048
|
+
createClassDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
8049
|
+
/**
|
|
8050
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8051
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8052
|
+
* an overload that removes the parameter entirely.
|
|
8053
|
+
*/
|
|
8054
|
+
updateClassDeclaration(node: ClassDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
8055
|
+
/**
|
|
8056
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8057
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8058
|
+
* an overload that removes the parameter entirely.
|
|
8059
|
+
*/
|
|
8060
|
+
createInterfaceDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
8061
|
+
/**
|
|
8062
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8063
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8064
|
+
* an overload that removes the parameter entirely.
|
|
8065
|
+
*/
|
|
8066
|
+
updateInterfaceDeclaration(node: InterfaceDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
8067
|
+
/**
|
|
8068
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8069
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8070
|
+
* an overload that removes the parameter entirely.
|
|
8071
|
+
*/
|
|
8072
|
+
createTypeAliasDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
8073
|
+
/**
|
|
8074
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8075
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8076
|
+
* an overload that removes the parameter entirely.
|
|
8077
|
+
*/
|
|
8078
|
+
updateTypeAliasDeclaration(node: TypeAliasDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
8079
|
+
/**
|
|
8080
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8081
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8082
|
+
* an overload that removes the parameter entirely.
|
|
8083
|
+
*/
|
|
8084
|
+
createEnumDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
8085
|
+
/**
|
|
8086
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8087
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8088
|
+
* an overload that removes the parameter entirely.
|
|
8089
|
+
*/
|
|
8090
|
+
updateEnumDeclaration(node: EnumDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
8091
|
+
/**
|
|
8092
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8093
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8094
|
+
* an overload that removes the parameter entirely.
|
|
8095
|
+
*/
|
|
8096
|
+
createModuleDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags): ModuleDeclaration;
|
|
8097
|
+
/**
|
|
8098
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8099
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8100
|
+
* an overload that removes the parameter entirely.
|
|
8101
|
+
*/
|
|
8102
|
+
updateModuleDeclaration(node: ModuleDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
8103
|
+
/**
|
|
8104
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8105
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8106
|
+
* an overload that removes the parameter entirely.
|
|
8107
|
+
*/
|
|
8108
|
+
createImportEqualsDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
8109
|
+
/**
|
|
8110
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8111
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8112
|
+
* an overload that removes the parameter entirely.
|
|
8113
|
+
*/
|
|
8114
|
+
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
8115
|
+
/**
|
|
8116
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8117
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8118
|
+
* an overload that removes the parameter entirely.
|
|
8119
|
+
*/
|
|
8120
|
+
createImportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
|
|
8121
|
+
/**
|
|
8122
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8123
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8124
|
+
* an overload that removes the parameter entirely.
|
|
8125
|
+
*/
|
|
8126
|
+
updateImportDeclaration(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
8127
|
+
/**
|
|
8128
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8129
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8130
|
+
* an overload that removes the parameter entirely.
|
|
8131
|
+
*/
|
|
8132
|
+
createExportAssignment(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
8133
|
+
/**
|
|
8134
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8135
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8136
|
+
* an overload that removes the parameter entirely.
|
|
8137
|
+
*/
|
|
8138
|
+
updateExportAssignment(node: ExportAssignment, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
8139
|
+
/**
|
|
8140
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8141
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8142
|
+
* an overload that removes the parameter entirely.
|
|
8143
|
+
*/
|
|
8144
|
+
createExportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
|
|
8145
|
+
/**
|
|
8146
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8147
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8148
|
+
* an overload that removes the parameter entirely.
|
|
8149
|
+
*/
|
|
8150
|
+
updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
|
|
8151
|
+
}
|
|
8152
|
+
}
|
|
7713
8153
|
|
|
7714
8154
|
export = ts;
|