typescript 5.0.0-dev.20230120 → 5.0.0-dev.20230122

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.
@@ -348,15 +348,15 @@ declare namespace ts {
348
348
  ShorthandPropertyAssignment = 300,
349
349
  SpreadAssignment = 301,
350
350
  EnumMember = 302,
351
- UnparsedPrologue = 303,
352
- UnparsedPrepend = 304,
353
- UnparsedText = 305,
354
- UnparsedInternalText = 306,
355
- UnparsedSyntheticReference = 307,
351
+ /** @deprecated */ UnparsedPrologue = 303,
352
+ /** @deprecated */ UnparsedPrepend = 304,
353
+ /** @deprecated */ UnparsedText = 305,
354
+ /** @deprecated */ UnparsedInternalText = 306,
355
+ /** @deprecated */ UnparsedSyntheticReference = 307,
356
356
  SourceFile = 308,
357
357
  Bundle = 309,
358
- UnparsedSource = 310,
359
- InputFiles = 311,
358
+ /** @deprecated */ UnparsedSource = 310,
359
+ /** @deprecated */ InputFiles = 311,
360
360
  JSDocTypeExpression = 312,
361
361
  JSDocNameReference = 313,
362
362
  JSDocMemberName = 314,
@@ -541,30 +541,6 @@ declare namespace ts {
541
541
  getLastToken(sourceFile?: SourceFile): Node | undefined;
542
542
  forEachChild<T>(cbNode: (node: Node) => T | undefined, cbNodeArray?: (nodes: NodeArray<Node>) => T | undefined): T | undefined;
543
543
  }
544
- interface Node {
545
- /**
546
- * @deprecated `decorators` has been removed from `Node` and merged with `modifiers` on the `Node` subtypes that support them.
547
- * Use `ts.canHaveDecorators()` to test whether a `Node` can have decorators.
548
- * Use `ts.getDecorators()` to get the decorators of a `Node`.
549
- *
550
- * For example:
551
- * ```ts
552
- * const decorators = ts.canHaveDecorators(node) ? ts.getDecorators(node) : undefined;
553
- * ```
554
- */
555
- readonly decorators?: undefined;
556
- /**
557
- * @deprecated `modifiers` has been removed from `Node` and moved to the `Node` subtypes that support them.
558
- * Use `ts.canHaveModifiers()` to test whether a `Node` can have modifiers.
559
- * Use `ts.getModifiers()` to get the modifiers of a `Node`.
560
- *
561
- * For example:
562
- * ```ts
563
- * const modifiers = ts.canHaveModifiers(node) ? ts.getModifiers(node) : undefined;
564
- * ```
565
- */
566
- readonly modifiers?: NodeArray<ModifierLike> | undefined;
567
- }
568
544
  interface JSDocContainer extends Node {
569
545
  _jsdocContainerBrand: any;
570
546
  }
@@ -610,10 +586,6 @@ declare namespace ts {
610
586
  type AssertKeyword = KeywordToken<SyntaxKind.AssertKeyword>;
611
587
  type AwaitKeyword = KeywordToken<SyntaxKind.AwaitKeyword>;
612
588
  type CaseKeyword = KeywordToken<SyntaxKind.CaseKeyword>;
613
- /** @deprecated Use `AwaitKeyword` instead. */
614
- type AwaitKeywordToken = AwaitKeyword;
615
- /** @deprecated Use `AssertsKeyword` instead. */
616
- type AssertsToken = AssertsKeyword;
617
589
  interface ModifierToken<TKind extends ModifierSyntaxKind> extends KeywordToken<TKind> {
618
590
  }
619
591
  type AbstractKeyword = ModifierToken<SyntaxKind.AbstractKeyword>;
@@ -631,8 +603,6 @@ declare namespace ts {
631
603
  type OutKeyword = ModifierToken<SyntaxKind.OutKeyword>;
632
604
  type OverrideKeyword = ModifierToken<SyntaxKind.OverrideKeyword>;
633
605
  type StaticKeyword = ModifierToken<SyntaxKind.StaticKeyword>;
634
- /** @deprecated Use `ReadonlyKeyword` instead. */
635
- type ReadonlyToken = ReadonlyKeyword;
636
606
  type Modifier = AbstractKeyword | AccessorKeyword | AsyncKeyword | ConstKeyword | DeclareKeyword | DefaultKeyword | ExportKeyword | InKeyword | PrivateKeyword | ProtectedKeyword | PublicKeyword | OutKeyword | OverrideKeyword | ReadonlyKeyword | StaticKeyword;
637
607
  type ModifierLike = Modifier | Decorator;
638
608
  type AccessibilityModifier = PublicKeyword | PrivateKeyword | ProtectedKeyword;
@@ -765,10 +735,6 @@ declare namespace ts {
765
735
  readonly questionToken?: QuestionToken;
766
736
  readonly type?: TypeNode;
767
737
  }
768
- interface PropertySignature {
769
- /** @deprecated A property signature cannot have an initializer */
770
- readonly initializer?: Expression | undefined;
771
- }
772
738
  interface PropertyDeclaration extends ClassElement, JSDocContainer {
773
739
  readonly kind: SyntaxKind.PropertyDeclaration;
774
740
  readonly parent: ClassLikeDeclaration;
@@ -794,12 +760,6 @@ declare namespace ts {
794
760
  readonly name: PropertyName;
795
761
  readonly initializer: Expression;
796
762
  }
797
- interface PropertyAssignment {
798
- /** @deprecated A property assignment cannot have a question token */
799
- readonly questionToken?: QuestionToken | undefined;
800
- /** @deprecated A property assignment cannot have an exclamation token */
801
- readonly exclamationToken?: ExclamationToken | undefined;
802
- }
803
763
  interface ShorthandPropertyAssignment extends ObjectLiteralElement, JSDocContainer {
804
764
  readonly kind: SyntaxKind.ShorthandPropertyAssignment;
805
765
  readonly parent: ObjectLiteralExpression;
@@ -807,14 +767,6 @@ declare namespace ts {
807
767
  readonly equalsToken?: EqualsToken;
808
768
  readonly objectAssignmentInitializer?: Expression;
809
769
  }
810
- interface ShorthandPropertyAssignment {
811
- /** @deprecated A shorthand property assignment cannot have modifiers */
812
- readonly modifiers?: NodeArray<ModifierLike> | undefined;
813
- /** @deprecated A shorthand property assignment cannot have a question token */
814
- readonly questionToken?: QuestionToken | undefined;
815
- /** @deprecated A shorthand property assignment cannot have an exclamation token */
816
- readonly exclamationToken?: ExclamationToken | undefined;
817
- }
818
770
  interface SpreadAssignment extends ObjectLiteralElement, JSDocContainer {
819
771
  readonly kind: SyntaxKind.SpreadAssignment;
820
772
  readonly parent: ObjectLiteralExpression;
@@ -937,10 +889,6 @@ declare namespace ts {
937
889
  interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer {
938
890
  readonly kind: SyntaxKind.FunctionType;
939
891
  }
940
- interface FunctionTypeNode {
941
- /** @deprecated A function type cannot have modifiers */
942
- readonly modifiers?: NodeArray<Modifier> | undefined;
943
- }
944
892
  interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer {
945
893
  readonly kind: SyntaxKind.ConstructorType;
946
894
  readonly modifiers?: NodeArray<Modifier>;
@@ -1786,8 +1734,8 @@ declare namespace ts {
1786
1734
  readonly name: Identifier;
1787
1735
  }
1788
1736
  type ImportOrExportSpecifier = ImportSpecifier | ExportSpecifier;
1789
- type TypeOnlyCompatibleAliasDeclaration = ImportClause | ImportEqualsDeclaration | NamespaceImport | ImportOrExportSpecifier;
1790
- type TypeOnlyAliasDeclaration = ImportClause & {
1737
+ type TypeOnlyCompatibleAliasDeclaration = ImportClause | ImportEqualsDeclaration | NamespaceImport | ImportOrExportSpecifier | ExportDeclaration | NamespaceExport;
1738
+ type TypeOnlyImportDeclaration = ImportClause & {
1791
1739
  readonly isTypeOnly: true;
1792
1740
  readonly name: Identifier;
1793
1741
  } | ImportEqualsDeclaration & {
@@ -1804,7 +1752,8 @@ declare namespace ts {
1804
1752
  readonly isTypeOnly: true;
1805
1753
  };
1806
1754
  };
1807
- }) | ExportSpecifier & ({
1755
+ });
1756
+ type TypeOnlyExportDeclaration = ExportSpecifier & ({
1808
1757
  readonly isTypeOnly: true;
1809
1758
  } | {
1810
1759
  readonly parent: NamedExports & {
@@ -1812,7 +1761,14 @@ declare namespace ts {
1812
1761
  readonly isTypeOnly: true;
1813
1762
  };
1814
1763
  };
1815
- });
1764
+ }) | ExportDeclaration & {
1765
+ readonly isTypeOnly: true;
1766
+ } | NamespaceExport & {
1767
+ readonly parent: ExportDeclaration & {
1768
+ readonly isTypeOnly: true;
1769
+ };
1770
+ };
1771
+ type TypeOnlyAliasDeclaration = TypeOnlyImportDeclaration | TypeOnlyExportDeclaration;
1816
1772
  /**
1817
1773
  * This is either an `export =` or an `export default` declaration.
1818
1774
  * Unless `isExportEquals` is set, this node was parsed as an `export default`.
@@ -2169,9 +2125,10 @@ declare namespace ts {
2169
2125
  }
2170
2126
  interface Bundle extends Node {
2171
2127
  readonly kind: SyntaxKind.Bundle;
2172
- readonly prepends: readonly (InputFiles | UnparsedSource)[];
2128
+ /** @deprecated */ readonly prepends: readonly (InputFiles | UnparsedSource)[];
2173
2129
  readonly sourceFiles: readonly SourceFile[];
2174
2130
  }
2131
+ /** @deprecated */
2175
2132
  interface InputFiles extends Node {
2176
2133
  readonly kind: SyntaxKind.InputFiles;
2177
2134
  javascriptPath?: string;
@@ -2183,6 +2140,7 @@ declare namespace ts {
2183
2140
  declarationMapPath?: string;
2184
2141
  declarationMapText?: string;
2185
2142
  }
2143
+ /** @deprecated */
2186
2144
  interface UnparsedSource extends Node {
2187
2145
  readonly kind: SyntaxKind.UnparsedSource;
2188
2146
  fileName: string;
@@ -2198,28 +2156,35 @@ declare namespace ts {
2198
2156
  readonly syntheticReferences?: readonly UnparsedSyntheticReference[];
2199
2157
  readonly texts: readonly UnparsedSourceText[];
2200
2158
  }
2159
+ /** @deprecated */
2201
2160
  type UnparsedSourceText = UnparsedPrepend | UnparsedTextLike;
2161
+ /** @deprecated */
2202
2162
  type UnparsedNode = UnparsedPrologue | UnparsedSourceText | UnparsedSyntheticReference;
2163
+ /** @deprecated */
2203
2164
  interface UnparsedSection extends Node {
2204
2165
  readonly kind: SyntaxKind;
2205
2166
  readonly parent: UnparsedSource;
2206
2167
  readonly data?: string;
2207
2168
  }
2169
+ /** @deprecated */
2208
2170
  interface UnparsedPrologue extends UnparsedSection {
2209
2171
  readonly kind: SyntaxKind.UnparsedPrologue;
2210
2172
  readonly parent: UnparsedSource;
2211
2173
  readonly data: string;
2212
2174
  }
2175
+ /** @deprecated */
2213
2176
  interface UnparsedPrepend extends UnparsedSection {
2214
2177
  readonly kind: SyntaxKind.UnparsedPrepend;
2215
2178
  readonly parent: UnparsedSource;
2216
2179
  readonly data: string;
2217
2180
  readonly texts: readonly UnparsedTextLike[];
2218
2181
  }
2182
+ /** @deprecated */
2219
2183
  interface UnparsedTextLike extends UnparsedSection {
2220
2184
  readonly kind: SyntaxKind.UnparsedText | SyntaxKind.UnparsedInternalText;
2221
2185
  readonly parent: UnparsedSource;
2222
2186
  }
2187
+ /** @deprecated */
2223
2188
  interface UnparsedSyntheticReference extends UnparsedSection {
2224
2189
  readonly kind: SyntaxKind.UnparsedSyntheticReference;
2225
2190
  readonly parent: UnparsedSource;
@@ -2360,9 +2325,7 @@ declare namespace ts {
2360
2325
  DiagnosticsPresent_OutputsSkipped = 1,
2361
2326
  DiagnosticsPresent_OutputsGenerated = 2,
2362
2327
  InvalidProject_OutputsSkipped = 3,
2363
- ProjectReferenceCycle_OutputsSkipped = 4,
2364
- /** @deprecated Use ProjectReferenceCycle_OutputsSkipped instead. */
2365
- ProjectReferenceCycle_OutputsSkupped = 4
2328
+ ProjectReferenceCycle_OutputsSkipped = 4
2366
2329
  }
2367
2330
  interface EmitResult {
2368
2331
  emitSkipped: boolean;
@@ -2492,8 +2455,6 @@ declare namespace ts {
2492
2455
  OmitThisParameter = 33554432,
2493
2456
  AllowThisInObjectLiteral = 32768,
2494
2457
  AllowQualifiedNameInPlaceOfIdentifier = 65536,
2495
- /** @deprecated AllowQualifedNameInPlaceOfIdentifier. Use AllowQualifiedNameInPlaceOfIdentifier instead. */
2496
- AllowQualifedNameInPlaceOfIdentifier = 65536,
2497
2458
  AllowAnonymousIdentifier = 131072,
2498
2459
  AllowEmptyUnionOrIntersection = 262144,
2499
2460
  AllowEmptyTuple = 524288,
@@ -2528,7 +2489,6 @@ declare namespace ts {
2528
2489
  InElementType = 2097152,
2529
2490
  InFirstTypeArgument = 4194304,
2530
2491
  InTypeAlias = 8388608,
2531
- /** @deprecated */ WriteOwnNameForAnyLike = 0,
2532
2492
  NodeBuilderFlagsMask = 848330091
2533
2493
  }
2534
2494
  enum SymbolFormatFlags {
@@ -2984,8 +2944,6 @@ declare namespace ts {
2984
2944
  PriorityImpliesCombination = 416,
2985
2945
  Circularity = -1
2986
2946
  }
2987
- /** @deprecated Use FileExtensionInfo instead. */
2988
- type JsFileExtensionInfo = FileExtensionInfo;
2989
2947
  interface FileExtensionInfo {
2990
2948
  extension: string;
2991
2949
  isMixedContent: boolean;
@@ -3208,11 +3166,6 @@ declare namespace ts {
3208
3166
  [option: string]: CompilerOptionsValue | undefined;
3209
3167
  }
3210
3168
  interface TypeAcquisition {
3211
- /**
3212
- * @deprecated typingOptions.enableAutoDiscovery
3213
- * Use typeAcquisition.enable instead.
3214
- */
3215
- enableAutoDiscovery?: boolean;
3216
3169
  enable?: boolean;
3217
3170
  include?: string[];
3218
3171
  exclude?: string[];
@@ -3948,8 +3901,10 @@ declare namespace ts {
3948
3901
  updatePartiallyEmittedExpression(node: PartiallyEmittedExpression, expression: Expression): PartiallyEmittedExpression;
3949
3902
  createCommaListExpression(elements: readonly Expression[]): CommaListExpression;
3950
3903
  updateCommaListExpression(node: CommaListExpression, elements: readonly Expression[]): CommaListExpression;
3951
- createBundle(sourceFiles: readonly SourceFile[], prepends?: readonly (UnparsedSource | InputFiles)[]): Bundle;
3952
- updateBundle(node: Bundle, sourceFiles: readonly SourceFile[], prepends?: readonly (UnparsedSource | InputFiles)[]): Bundle;
3904
+ createBundle(sourceFiles: readonly SourceFile[]): Bundle;
3905
+ /** @deprecated*/ createBundle(sourceFiles: readonly SourceFile[], prepends?: readonly (UnparsedSource | InputFiles)[]): Bundle;
3906
+ updateBundle(node: Bundle, sourceFiles: readonly SourceFile[]): Bundle;
3907
+ /** @deprecated*/ updateBundle(node: Bundle, sourceFiles: readonly SourceFile[], prepends?: readonly (UnparsedSource | InputFiles)[]): Bundle;
3953
3908
  createComma(left: Expression, right: Expression): BinaryExpression;
3954
3909
  createAssignment(left: ObjectLiteralExpression | ArrayLiteralExpression, right: Expression): DestructuringAssignment;
3955
3910
  createAssignment(left: Expression, right: Expression): AssignmentExpression<EqualsToken>;
@@ -3992,179 +3947,6 @@ declare namespace ts {
3992
3947
  createExternalModuleExport(exportName: Identifier): ExportDeclaration;
3993
3948
  restoreOuterExpressions(outerExpression: Expression | undefined, innerExpression: Expression, kinds?: OuterExpressionKinds): Expression;
3994
3949
  }
3995
- interface NodeFactory {
3996
- /** @deprecated Use the overload that accepts 'modifiers' */
3997
- createConstructorTypeNode(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): ConstructorTypeNode;
3998
- /** @deprecated Use the overload that accepts 'modifiers' */
3999
- updateConstructorTypeNode(node: ConstructorTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode): ConstructorTypeNode;
4000
- }
4001
- interface NodeFactory {
4002
- createImportTypeNode(argument: TypeNode, assertions?: ImportTypeAssertionContainer, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
4003
- /** @deprecated Use the overload that accepts 'assertions' */
4004
- createImportTypeNode(argument: TypeNode, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
4005
- /** @deprecated Use the overload that accepts 'assertions' */
4006
- updateImportTypeNode(node: ImportTypeNode, argument: TypeNode, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean): ImportTypeNode;
4007
- }
4008
- interface NodeFactory {
4009
- /** @deprecated Use the overload that accepts 'modifiers' */
4010
- createTypeParameterDeclaration(name: string | Identifier, constraint?: TypeNode, defaultType?: TypeNode): TypeParameterDeclaration;
4011
- /** @deprecated Use the overload that accepts 'modifiers' */
4012
- updateTypeParameterDeclaration(node: TypeParameterDeclaration, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration;
4013
- }
4014
- interface NodeFactory {
4015
- /**
4016
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4017
- */
4018
- createParameterDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration;
4019
- /**
4020
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4021
- */
4022
- 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;
4023
- /**
4024
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4025
- */
4026
- createPropertyDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
4027
- /**
4028
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4029
- */
4030
- 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;
4031
- /**
4032
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4033
- */
4034
- 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;
4035
- /**
4036
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4037
- */
4038
- 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;
4039
- /**
4040
- * @deprecated This node does not support Decorators. Callers should use an overload that does not accept a `decorators` parameter.
4041
- */
4042
- createConstructorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
4043
- /**
4044
- * @deprecated This node does not support Decorators. Callers should use an overload that does not accept a `decorators` parameter.
4045
- */
4046
- updateConstructorDeclaration(node: ConstructorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
4047
- /**
4048
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4049
- */
4050
- createGetAccessorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
4051
- /**
4052
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4053
- */
4054
- updateGetAccessorDeclaration(node: GetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
4055
- /**
4056
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4057
- */
4058
- createSetAccessorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
4059
- /**
4060
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4061
- */
4062
- updateSetAccessorDeclaration(node: SetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
4063
- /**
4064
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4065
- */
4066
- createIndexSignature(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
4067
- /**
4068
- * @deprecated Decorators and modifiers are no longer supported for this function. Callers should use an overload that does not accept the `decorators` and `modifiers` parameters.
4069
- */
4070
- updateIndexSignature(node: IndexSignatureDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
4071
- /**
4072
- * @deprecated Decorators and modifiers are no longer supported for this function. Callers should use an overload that does not accept the `decorators` and `modifiers` parameters.
4073
- */
4074
- createClassStaticBlockDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, body: Block): ClassStaticBlockDeclaration;
4075
- /**
4076
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4077
- */
4078
- updateClassStaticBlockDeclaration(node: ClassStaticBlockDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, body: Block): ClassStaticBlockDeclaration;
4079
- /**
4080
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4081
- */
4082
- 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;
4083
- /**
4084
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4085
- */
4086
- 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;
4087
- /**
4088
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4089
- */
4090
- 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;
4091
- /**
4092
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4093
- */
4094
- 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;
4095
- /**
4096
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4097
- */
4098
- 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;
4099
- /**
4100
- * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
4101
- */
4102
- 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;
4103
- /**
4104
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4105
- */
4106
- createInterfaceDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
4107
- /**
4108
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4109
- */
4110
- 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;
4111
- /**
4112
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4113
- */
4114
- createTypeAliasDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
4115
- /**
4116
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4117
- */
4118
- updateTypeAliasDeclaration(node: TypeAliasDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
4119
- /**
4120
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4121
- */
4122
- createEnumDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
4123
- /**
4124
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4125
- */
4126
- updateEnumDeclaration(node: EnumDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
4127
- /**
4128
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4129
- */
4130
- createModuleDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags): ModuleDeclaration;
4131
- /**
4132
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4133
- */
4134
- updateModuleDeclaration(node: ModuleDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
4135
- /**
4136
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4137
- */
4138
- createImportEqualsDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
4139
- /**
4140
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4141
- */
4142
- updateImportEqualsDeclaration(node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
4143
- /**
4144
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4145
- */
4146
- createImportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
4147
- /**
4148
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4149
- */
4150
- updateImportDeclaration(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
4151
- /**
4152
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4153
- */
4154
- createExportAssignment(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
4155
- /**
4156
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4157
- */
4158
- updateExportAssignment(node: ExportAssignment, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
4159
- /**
4160
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4161
- */
4162
- createExportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
4163
- /**
4164
- * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
4165
- */
4166
- updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
4167
- }
4168
3950
  interface CoreTransformationContext {
4169
3951
  readonly factory: NodeFactory;
4170
3952
  /** Gets the compiler options supplied to the transformer. */
@@ -4828,7 +4610,9 @@ declare namespace ts {
4828
4610
  function isNonNullChain(node: Node): node is NonNullChain;
4829
4611
  function isBreakOrContinueStatement(node: Node): node is BreakOrContinueStatement;
4830
4612
  function isNamedExportBindings(node: Node): node is NamedExportBindings;
4613
+ /** @deprecated */
4831
4614
  function isUnparsedTextLike(node: Node): node is UnparsedTextLike;
4615
+ /** @deprecated */
4832
4616
  function isUnparsedNode(node: Node): node is UnparsedNode;
4833
4617
  function isJSDocPropertyLikeTag(node: Node): node is JSDocPropertyLikeTag;
4834
4618
  /**
@@ -4847,6 +4631,8 @@ declare namespace ts {
4847
4631
  function isTemplateLiteralToken(node: Node): node is TemplateLiteralToken;
4848
4632
  function isTemplateMiddleOrTemplateTail(node: Node): node is TemplateMiddle | TemplateTail;
4849
4633
  function isImportOrExportSpecifier(node: Node): node is ImportSpecifier | ExportSpecifier;
4634
+ function isTypeOnlyImportDeclaration(node: Node): node is TypeOnlyImportDeclaration;
4635
+ function isTypeOnlyExportDeclaration(node: Node): node is TypeOnlyExportDeclaration;
4850
4636
  function isTypeOnlyImportOrExportDeclaration(node: Node): node is TypeOnlyAliasDeclaration;
4851
4637
  function isAssertionKey(node: Node): node is AssertionKey;
4852
4638
  function isStringTextContainingNode(node: Node): node is StringLiteral | TemplateLiteralToken;
@@ -4870,13 +4656,30 @@ declare namespace ts {
4870
4656
  */
4871
4657
  function isTypeNode(node: Node): node is TypeNode;
4872
4658
  function isFunctionOrConstructorTypeNode(node: Node): node is FunctionTypeNode | ConstructorTypeNode;
4659
+ function isArrayBindingElement(node: Node): node is ArrayBindingElement;
4873
4660
  function isPropertyAccessOrQualifiedName(node: Node): node is PropertyAccessExpression | QualifiedName;
4874
4661
  function isCallLikeExpression(node: Node): node is CallLikeExpression;
4875
4662
  function isCallOrNewExpression(node: Node): node is CallExpression | NewExpression;
4876
4663
  function isTemplateLiteral(node: Node): node is TemplateLiteral;
4664
+ function isLeftHandSideExpression(node: Node): node is LeftHandSideExpression;
4665
+ function isLiteralTypeLiteral(node: Node): node is NullLiteral | BooleanLiteral | LiteralExpression | PrefixUnaryExpression;
4666
+ /**
4667
+ * Determines whether a node is an expression based only on its kind.
4668
+ */
4669
+ function isExpression(node: Node): node is Expression;
4877
4670
  function isAssertionExpression(node: Node): node is AssertionExpression;
4878
4671
  function isIterationStatement(node: Node, lookInLabeledStatements: false): node is IterationStatement;
4879
4672
  function isIterationStatement(node: Node, lookInLabeledStatements: boolean): node is IterationStatement | LabeledStatement;
4673
+ function isConciseBody(node: Node): node is ConciseBody;
4674
+ function isForInitializer(node: Node): node is ForInitializer;
4675
+ function isModuleBody(node: Node): node is ModuleBody;
4676
+ function isNamedImportBindings(node: Node): node is NamedImportBindings;
4677
+ function isStatement(node: Node): node is Statement;
4678
+ function isModuleReference(node: Node): node is ModuleReference;
4679
+ function isJsxTagNameExpression(node: Node): node is JsxTagNameExpression;
4680
+ function isJsxChild(node: Node): node is JsxChild;
4681
+ function isJsxAttributeLike(node: Node): node is JsxAttributeLike;
4682
+ function isStringLiteralOrJsxExpression(node: Node): node is StringLiteral | JsxExpression;
4880
4683
  function isJsxOpeningLikeElement(node: Node): node is JsxOpeningLikeElement;
4881
4684
  function isCaseOrDefaultClause(node: Node): node is CaseOrDefaultClause;
4882
4685
  /** True if node is of a kind that may contain comment text. */
@@ -4896,11 +4699,17 @@ declare namespace ts {
4896
4699
  name: Identifier;
4897
4700
  };
4898
4701
  function emitModuleKindIsNonNodeESM(moduleKind: ModuleKind): boolean;
4702
+ /** @deprecated */
4899
4703
  function createUnparsedSourceFile(text: string): UnparsedSource;
4704
+ /** @deprecated */
4900
4705
  function createUnparsedSourceFile(inputFile: InputFiles, type: "js" | "dts", stripInternal?: boolean): UnparsedSource;
4706
+ /** @deprecated */
4901
4707
  function createUnparsedSourceFile(text: string, mapPath: string | undefined, map: string | undefined): UnparsedSource;
4708
+ /** @deprecated */
4902
4709
  function createInputFiles(javascriptText: string, declarationText: string): InputFiles;
4710
+ /** @deprecated */
4903
4711
  function createInputFiles(javascriptText: string, declarationText: string, javascriptMapPath: string | undefined, javascriptMapText: string | undefined, declarationMapPath: string | undefined, declarationMapText: string | undefined): InputFiles;
4712
+ /** @deprecated */
4904
4713
  function createInputFiles(readFileText: (path: string) => string | undefined, javascriptPath: string, javascriptMapPath: string | undefined, declarationPath: string, declarationMapPath: string | undefined, buildInfoPath: string | undefined): InputFiles;
4905
4714
  /**
4906
4715
  * Create an external source map source file reference
@@ -4989,8 +4798,15 @@ declare namespace ts {
4989
4798
  function isPlusToken(node: Node): node is PlusToken;
4990
4799
  function isMinusToken(node: Node): node is MinusToken;
4991
4800
  function isAsteriskToken(node: Node): node is AsteriskToken;
4801
+ function isExclamationToken(node: Node): node is ExclamationToken;
4802
+ function isQuestionToken(node: Node): node is QuestionToken;
4803
+ function isColonToken(node: Node): node is ColonToken;
4804
+ function isQuestionDotToken(node: Node): node is QuestionDotToken;
4805
+ function isEqualsGreaterThanToken(node: Node): node is EqualsGreaterThanToken;
4992
4806
  function isIdentifier(node: Node): node is Identifier;
4993
4807
  function isPrivateIdentifier(node: Node): node is PrivateIdentifier;
4808
+ function isAssertsKeyword(node: Node): node is AssertsKeyword;
4809
+ function isAwaitKeyword(node: Node): node is AwaitKeyword;
4994
4810
  function isQualifiedName(node: Node): node is QualifiedName;
4995
4811
  function isComputedPropertyName(node: Node): node is ComputedPropertyName;
4996
4812
  function isTypeParameterDeclaration(node: Node): node is TypeParameterDeclaration;
@@ -5134,9 +4950,11 @@ declare namespace ts {
5134
4950
  function isShorthandPropertyAssignment(node: Node): node is ShorthandPropertyAssignment;
5135
4951
  function isSpreadAssignment(node: Node): node is SpreadAssignment;
5136
4952
  function isEnumMember(node: Node): node is EnumMember;
4953
+ /** @deprecated */
5137
4954
  function isUnparsedPrepend(node: Node): node is UnparsedPrepend;
5138
4955
  function isSourceFile(node: Node): node is SourceFile;
5139
4956
  function isBundle(node: Node): node is Bundle;
4957
+ /** @deprecated */
5140
4958
  function isUnparsedSource(node: Node): node is UnparsedSource;
5141
4959
  function isJSDocTypeExpression(node: Node): node is JSDocTypeExpression;
5142
4960
  function isJSDocNameReference(node: Node): node is JSDocNameReference;
@@ -5179,6 +4997,12 @@ declare namespace ts {
5179
4997
  function isJSDocImplementsTag(node: Node): node is JSDocImplementsTag;
5180
4998
  function isJSDocSatisfiesTag(node: Node): node is JSDocSatisfiesTag;
5181
4999
  function isJSDocThrowsTag(node: Node): node is JSDocThrowsTag;
5000
+ function isQuestionOrExclamationToken(node: Node): node is QuestionToken | ExclamationToken;
5001
+ function isIdentifierOrThisTypeNode(node: Node): node is Identifier | ThisTypeNode;
5002
+ function isReadonlyKeywordOrPlusOrMinusToken(node: Node): node is ReadonlyKeyword | PlusToken | MinusToken;
5003
+ function isQuestionOrPlusOrMinusToken(node: Node): node is QuestionToken | PlusToken | MinusToken;
5004
+ function isModuleName(node: Node): node is ModuleName;
5005
+ function isBinaryOperatorToken(node: Node): node is BinaryOperatorToken;
5182
5006
  function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T;
5183
5007
  function canHaveModifiers(node: Node): node is HasModifiers;
5184
5008
  function canHaveDecorators(node: Node): node is HasDecorators;
@@ -5576,15 +5400,11 @@ declare namespace ts {
5576
5400
  * Note: The file might not exist.
5577
5401
  */
5578
5402
  function resolveProjectReferencePath(ref: ProjectReference): ResolvedConfigFileName;
5579
- /** @deprecated */ function resolveProjectReferencePath(host: ResolveProjectReferencePathHost, ref: ProjectReference): ResolvedConfigFileName;
5580
5403
  interface FormatDiagnosticsHost {
5581
5404
  getCurrentDirectory(): string;
5582
5405
  getCanonicalFileName(fileName: string): string;
5583
5406
  getNewLine(): string;
5584
5407
  }
5585
- /** @deprecated */ interface ResolveProjectReferencePathHost {
5586
- fileExists(fileName: string): boolean;
5587
- }
5588
5408
  interface EmitOutput {
5589
5409
  outputFiles: OutputFile[];
5590
5410
  emitSkipped: boolean;
@@ -5927,7 +5747,7 @@ declare namespace ts {
5927
5747
  }
5928
5748
  enum InvalidatedProjectKind {
5929
5749
  Build = 0,
5930
- UpdateBundle = 1,
5750
+ /** @deprecated */ UpdateBundle = 1,
5931
5751
  UpdateOutputFileStamps = 2
5932
5752
  }
5933
5753
  interface InvalidatedProjectBase {
@@ -5959,6 +5779,7 @@ declare namespace ts {
5959
5779
  getSemanticDiagnosticsOfNextAffectedFile(cancellationToken?: CancellationToken, ignoreSourceFile?: (sourceFile: SourceFile) => boolean): AffectedFileResult<readonly Diagnostic[]>;
5960
5780
  emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult | undefined;
5961
5781
  }
5782
+ /** @deprecated */
5962
5783
  interface UpdateBundleProject<T extends BuilderProgram> extends InvalidatedProjectBase {
5963
5784
  readonly kind: InvalidatedProjectKind.UpdateBundle;
5964
5785
  emit(writeFile?: WriteFileCallback, customTransformers?: CustomTransformers): EmitResult | BuildInvalidedProject<T> | undefined;
@@ -7299,738 +7120,5 @@ declare namespace ts {
7299
7120
  * @param compilerOptions Optional compiler options.
7300
7121
  */
7301
7122
  function transform<T extends Node>(source: T | T[], transformers: TransformerFactory<T>[], compilerOptions?: CompilerOptions): TransformationResult<T>;
7302
- /** @deprecated Use `factory.createNodeArray` or the factory supplied by your transformation context instead. */
7303
- const createNodeArray: typeof factory.createNodeArray;
7304
- /** @deprecated Use `factory.createNumericLiteral` or the factory supplied by your transformation context instead. */
7305
- const createNumericLiteral: typeof factory.createNumericLiteral;
7306
- /** @deprecated Use `factory.createBigIntLiteral` or the factory supplied by your transformation context instead. */
7307
- const createBigIntLiteral: typeof factory.createBigIntLiteral;
7308
- /** @deprecated Use `factory.createStringLiteral` or the factory supplied by your transformation context instead. */
7309
- const createStringLiteral: typeof factory.createStringLiteral;
7310
- /** @deprecated Use `factory.createStringLiteralFromNode` or the factory supplied by your transformation context instead. */
7311
- const createStringLiteralFromNode: typeof factory.createStringLiteralFromNode;
7312
- /** @deprecated Use `factory.createRegularExpressionLiteral` or the factory supplied by your transformation context instead. */
7313
- const createRegularExpressionLiteral: typeof factory.createRegularExpressionLiteral;
7314
- /** @deprecated Use `factory.createLoopVariable` or the factory supplied by your transformation context instead. */
7315
- const createLoopVariable: typeof factory.createLoopVariable;
7316
- /** @deprecated Use `factory.createUniqueName` or the factory supplied by your transformation context instead. */
7317
- const createUniqueName: typeof factory.createUniqueName;
7318
- /** @deprecated Use `factory.createPrivateIdentifier` or the factory supplied by your transformation context instead. */
7319
- const createPrivateIdentifier: typeof factory.createPrivateIdentifier;
7320
- /** @deprecated Use `factory.createSuper` or the factory supplied by your transformation context instead. */
7321
- const createSuper: typeof factory.createSuper;
7322
- /** @deprecated Use `factory.createThis` or the factory supplied by your transformation context instead. */
7323
- const createThis: typeof factory.createThis;
7324
- /** @deprecated Use `factory.createNull` or the factory supplied by your transformation context instead. */
7325
- const createNull: typeof factory.createNull;
7326
- /** @deprecated Use `factory.createTrue` or the factory supplied by your transformation context instead. */
7327
- const createTrue: typeof factory.createTrue;
7328
- /** @deprecated Use `factory.createFalse` or the factory supplied by your transformation context instead. */
7329
- const createFalse: typeof factory.createFalse;
7330
- /** @deprecated Use `factory.createModifier` or the factory supplied by your transformation context instead. */
7331
- const createModifier: typeof factory.createModifier;
7332
- /** @deprecated Use `factory.createModifiersFromModifierFlags` or the factory supplied by your transformation context instead. */
7333
- const createModifiersFromModifierFlags: typeof factory.createModifiersFromModifierFlags;
7334
- /** @deprecated Use `factory.createQualifiedName` or the factory supplied by your transformation context instead. */
7335
- const createQualifiedName: typeof factory.createQualifiedName;
7336
- /** @deprecated Use `factory.updateQualifiedName` or the factory supplied by your transformation context instead. */
7337
- const updateQualifiedName: typeof factory.updateQualifiedName;
7338
- /** @deprecated Use `factory.createComputedPropertyName` or the factory supplied by your transformation context instead. */
7339
- const createComputedPropertyName: typeof factory.createComputedPropertyName;
7340
- /** @deprecated Use `factory.updateComputedPropertyName` or the factory supplied by your transformation context instead. */
7341
- const updateComputedPropertyName: typeof factory.updateComputedPropertyName;
7342
- /** @deprecated Use `factory.createTypeParameterDeclaration` or the factory supplied by your transformation context instead. */
7343
- const createTypeParameterDeclaration: typeof factory.createTypeParameterDeclaration;
7344
- /** @deprecated Use `factory.updateTypeParameterDeclaration` or the factory supplied by your transformation context instead. */
7345
- const updateTypeParameterDeclaration: typeof factory.updateTypeParameterDeclaration;
7346
- /** @deprecated Use `factory.createParameterDeclaration` or the factory supplied by your transformation context instead. */
7347
- const createParameter: typeof factory.createParameterDeclaration;
7348
- /** @deprecated Use `factory.updateParameterDeclaration` or the factory supplied by your transformation context instead. */
7349
- const updateParameter: typeof factory.updateParameterDeclaration;
7350
- /** @deprecated Use `factory.createDecorator` or the factory supplied by your transformation context instead. */
7351
- const createDecorator: typeof factory.createDecorator;
7352
- /** @deprecated Use `factory.updateDecorator` or the factory supplied by your transformation context instead. */
7353
- const updateDecorator: typeof factory.updateDecorator;
7354
- /** @deprecated Use `factory.createPropertyDeclaration` or the factory supplied by your transformation context instead. */
7355
- const createProperty: typeof factory.createPropertyDeclaration;
7356
- /** @deprecated Use `factory.updatePropertyDeclaration` or the factory supplied by your transformation context instead. */
7357
- const updateProperty: typeof factory.updatePropertyDeclaration;
7358
- /** @deprecated Use `factory.createMethodDeclaration` or the factory supplied by your transformation context instead. */
7359
- const createMethod: typeof factory.createMethodDeclaration;
7360
- /** @deprecated Use `factory.updateMethodDeclaration` or the factory supplied by your transformation context instead. */
7361
- const updateMethod: typeof factory.updateMethodDeclaration;
7362
- /** @deprecated Use `factory.createConstructorDeclaration` or the factory supplied by your transformation context instead. */
7363
- const createConstructor: typeof factory.createConstructorDeclaration;
7364
- /** @deprecated Use `factory.updateConstructorDeclaration` or the factory supplied by your transformation context instead. */
7365
- const updateConstructor: typeof factory.updateConstructorDeclaration;
7366
- /** @deprecated Use `factory.createGetAccessorDeclaration` or the factory supplied by your transformation context instead. */
7367
- const createGetAccessor: typeof factory.createGetAccessorDeclaration;
7368
- /** @deprecated Use `factory.updateGetAccessorDeclaration` or the factory supplied by your transformation context instead. */
7369
- const updateGetAccessor: typeof factory.updateGetAccessorDeclaration;
7370
- /** @deprecated Use `factory.createSetAccessorDeclaration` or the factory supplied by your transformation context instead. */
7371
- const createSetAccessor: typeof factory.createSetAccessorDeclaration;
7372
- /** @deprecated Use `factory.updateSetAccessorDeclaration` or the factory supplied by your transformation context instead. */
7373
- const updateSetAccessor: typeof factory.updateSetAccessorDeclaration;
7374
- /** @deprecated Use `factory.createCallSignature` or the factory supplied by your transformation context instead. */
7375
- const createCallSignature: typeof factory.createCallSignature;
7376
- /** @deprecated Use `factory.updateCallSignature` or the factory supplied by your transformation context instead. */
7377
- const updateCallSignature: typeof factory.updateCallSignature;
7378
- /** @deprecated Use `factory.createConstructSignature` or the factory supplied by your transformation context instead. */
7379
- const createConstructSignature: typeof factory.createConstructSignature;
7380
- /** @deprecated Use `factory.updateConstructSignature` or the factory supplied by your transformation context instead. */
7381
- const updateConstructSignature: typeof factory.updateConstructSignature;
7382
- /** @deprecated Use `factory.updateIndexSignature` or the factory supplied by your transformation context instead. */
7383
- const updateIndexSignature: typeof factory.updateIndexSignature;
7384
- /** @deprecated Use `factory.createKeywordTypeNode` or the factory supplied by your transformation context instead. */
7385
- const createKeywordTypeNode: typeof factory.createKeywordTypeNode;
7386
- /** @deprecated Use `factory.createTypePredicateNode` or the factory supplied by your transformation context instead. */
7387
- const createTypePredicateNodeWithModifier: typeof factory.createTypePredicateNode;
7388
- /** @deprecated Use `factory.updateTypePredicateNode` or the factory supplied by your transformation context instead. */
7389
- const updateTypePredicateNodeWithModifier: typeof factory.updateTypePredicateNode;
7390
- /** @deprecated Use `factory.createTypeReferenceNode` or the factory supplied by your transformation context instead. */
7391
- const createTypeReferenceNode: typeof factory.createTypeReferenceNode;
7392
- /** @deprecated Use `factory.updateTypeReferenceNode` or the factory supplied by your transformation context instead. */
7393
- const updateTypeReferenceNode: typeof factory.updateTypeReferenceNode;
7394
- /** @deprecated Use `factory.createFunctionTypeNode` or the factory supplied by your transformation context instead. */
7395
- const createFunctionTypeNode: typeof factory.createFunctionTypeNode;
7396
- /** @deprecated Use `factory.updateFunctionTypeNode` or the factory supplied by your transformation context instead. */
7397
- const updateFunctionTypeNode: typeof factory.updateFunctionTypeNode;
7398
- /** @deprecated Use `factory.createConstructorTypeNode` or the factory supplied by your transformation context instead. */
7399
- const createConstructorTypeNode: (typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode) => ConstructorTypeNode;
7400
- /** @deprecated Use `factory.updateConstructorTypeNode` or the factory supplied by your transformation context instead. */
7401
- const updateConstructorTypeNode: (node: ConstructorTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode) => ConstructorTypeNode;
7402
- /** @deprecated Use `factory.createTypeQueryNode` or the factory supplied by your transformation context instead. */
7403
- const createTypeQueryNode: typeof factory.createTypeQueryNode;
7404
- /** @deprecated Use `factory.updateTypeQueryNode` or the factory supplied by your transformation context instead. */
7405
- const updateTypeQueryNode: typeof factory.updateTypeQueryNode;
7406
- /** @deprecated Use `factory.createTypeLiteralNode` or the factory supplied by your transformation context instead. */
7407
- const createTypeLiteralNode: typeof factory.createTypeLiteralNode;
7408
- /** @deprecated Use `factory.updateTypeLiteralNode` or the factory supplied by your transformation context instead. */
7409
- const updateTypeLiteralNode: typeof factory.updateTypeLiteralNode;
7410
- /** @deprecated Use `factory.createArrayTypeNode` or the factory supplied by your transformation context instead. */
7411
- const createArrayTypeNode: typeof factory.createArrayTypeNode;
7412
- /** @deprecated Use `factory.updateArrayTypeNode` or the factory supplied by your transformation context instead. */
7413
- const updateArrayTypeNode: typeof factory.updateArrayTypeNode;
7414
- /** @deprecated Use `factory.createTupleTypeNode` or the factory supplied by your transformation context instead. */
7415
- const createTupleTypeNode: typeof factory.createTupleTypeNode;
7416
- /** @deprecated Use `factory.updateTupleTypeNode` or the factory supplied by your transformation context instead. */
7417
- const updateTupleTypeNode: typeof factory.updateTupleTypeNode;
7418
- /** @deprecated Use `factory.createOptionalTypeNode` or the factory supplied by your transformation context instead. */
7419
- const createOptionalTypeNode: typeof factory.createOptionalTypeNode;
7420
- /** @deprecated Use `factory.updateOptionalTypeNode` or the factory supplied by your transformation context instead. */
7421
- const updateOptionalTypeNode: typeof factory.updateOptionalTypeNode;
7422
- /** @deprecated Use `factory.createRestTypeNode` or the factory supplied by your transformation context instead. */
7423
- const createRestTypeNode: typeof factory.createRestTypeNode;
7424
- /** @deprecated Use `factory.updateRestTypeNode` or the factory supplied by your transformation context instead. */
7425
- const updateRestTypeNode: typeof factory.updateRestTypeNode;
7426
- /** @deprecated Use `factory.createUnionTypeNode` or the factory supplied by your transformation context instead. */
7427
- const createUnionTypeNode: typeof factory.createUnionTypeNode;
7428
- /** @deprecated Use `factory.updateUnionTypeNode` or the factory supplied by your transformation context instead. */
7429
- const updateUnionTypeNode: typeof factory.updateUnionTypeNode;
7430
- /** @deprecated Use `factory.createIntersectionTypeNode` or the factory supplied by your transformation context instead. */
7431
- const createIntersectionTypeNode: typeof factory.createIntersectionTypeNode;
7432
- /** @deprecated Use `factory.updateIntersectionTypeNode` or the factory supplied by your transformation context instead. */
7433
- const updateIntersectionTypeNode: typeof factory.updateIntersectionTypeNode;
7434
- /** @deprecated Use `factory.createConditionalTypeNode` or the factory supplied by your transformation context instead. */
7435
- const createConditionalTypeNode: typeof factory.createConditionalTypeNode;
7436
- /** @deprecated Use `factory.updateConditionalTypeNode` or the factory supplied by your transformation context instead. */
7437
- const updateConditionalTypeNode: typeof factory.updateConditionalTypeNode;
7438
- /** @deprecated Use `factory.createInferTypeNode` or the factory supplied by your transformation context instead. */
7439
- const createInferTypeNode: typeof factory.createInferTypeNode;
7440
- /** @deprecated Use `factory.updateInferTypeNode` or the factory supplied by your transformation context instead. */
7441
- const updateInferTypeNode: typeof factory.updateInferTypeNode;
7442
- /** @deprecated Use `factory.createImportTypeNode` or the factory supplied by your transformation context instead. */
7443
- const createImportTypeNode: typeof factory.createImportTypeNode;
7444
- /** @deprecated Use `factory.updateImportTypeNode` or the factory supplied by your transformation context instead. */
7445
- const updateImportTypeNode: typeof factory.updateImportTypeNode;
7446
- /** @deprecated Use `factory.createParenthesizedType` or the factory supplied by your transformation context instead. */
7447
- const createParenthesizedType: typeof factory.createParenthesizedType;
7448
- /** @deprecated Use `factory.updateParenthesizedType` or the factory supplied by your transformation context instead. */
7449
- const updateParenthesizedType: typeof factory.updateParenthesizedType;
7450
- /** @deprecated Use `factory.createThisTypeNode` or the factory supplied by your transformation context instead. */
7451
- const createThisTypeNode: typeof factory.createThisTypeNode;
7452
- /** @deprecated Use `factory.updateTypeOperatorNode` or the factory supplied by your transformation context instead. */
7453
- const updateTypeOperatorNode: typeof factory.updateTypeOperatorNode;
7454
- /** @deprecated Use `factory.createIndexedAccessTypeNode` or the factory supplied by your transformation context instead. */
7455
- const createIndexedAccessTypeNode: typeof factory.createIndexedAccessTypeNode;
7456
- /** @deprecated Use `factory.updateIndexedAccessTypeNode` or the factory supplied by your transformation context instead. */
7457
- const updateIndexedAccessTypeNode: typeof factory.updateIndexedAccessTypeNode;
7458
- /** @deprecated Use `factory.createMappedTypeNode` or the factory supplied by your transformation context instead. */
7459
- const createMappedTypeNode: typeof factory.createMappedTypeNode;
7460
- /** @deprecated Use `factory.updateMappedTypeNode` or the factory supplied by your transformation context instead. */
7461
- const updateMappedTypeNode: typeof factory.updateMappedTypeNode;
7462
- /** @deprecated Use `factory.createLiteralTypeNode` or the factory supplied by your transformation context instead. */
7463
- const createLiteralTypeNode: typeof factory.createLiteralTypeNode;
7464
- /** @deprecated Use `factory.updateLiteralTypeNode` or the factory supplied by your transformation context instead. */
7465
- const updateLiteralTypeNode: typeof factory.updateLiteralTypeNode;
7466
- /** @deprecated Use `factory.createObjectBindingPattern` or the factory supplied by your transformation context instead. */
7467
- const createObjectBindingPattern: typeof factory.createObjectBindingPattern;
7468
- /** @deprecated Use `factory.updateObjectBindingPattern` or the factory supplied by your transformation context instead. */
7469
- const updateObjectBindingPattern: typeof factory.updateObjectBindingPattern;
7470
- /** @deprecated Use `factory.createArrayBindingPattern` or the factory supplied by your transformation context instead. */
7471
- const createArrayBindingPattern: typeof factory.createArrayBindingPattern;
7472
- /** @deprecated Use `factory.updateArrayBindingPattern` or the factory supplied by your transformation context instead. */
7473
- const updateArrayBindingPattern: typeof factory.updateArrayBindingPattern;
7474
- /** @deprecated Use `factory.createBindingElement` or the factory supplied by your transformation context instead. */
7475
- const createBindingElement: typeof factory.createBindingElement;
7476
- /** @deprecated Use `factory.updateBindingElement` or the factory supplied by your transformation context instead. */
7477
- const updateBindingElement: typeof factory.updateBindingElement;
7478
- /** @deprecated Use `factory.createArrayLiteralExpression` or the factory supplied by your transformation context instead. */
7479
- const createArrayLiteral: typeof factory.createArrayLiteralExpression;
7480
- /** @deprecated Use `factory.updateArrayLiteralExpression` or the factory supplied by your transformation context instead. */
7481
- const updateArrayLiteral: typeof factory.updateArrayLiteralExpression;
7482
- /** @deprecated Use `factory.createObjectLiteralExpression` or the factory supplied by your transformation context instead. */
7483
- const createObjectLiteral: typeof factory.createObjectLiteralExpression;
7484
- /** @deprecated Use `factory.updateObjectLiteralExpression` or the factory supplied by your transformation context instead. */
7485
- const updateObjectLiteral: typeof factory.updateObjectLiteralExpression;
7486
- /** @deprecated Use `factory.createPropertyAccessExpression` or the factory supplied by your transformation context instead. */
7487
- const createPropertyAccess: typeof factory.createPropertyAccessExpression;
7488
- /** @deprecated Use `factory.updatePropertyAccessExpression` or the factory supplied by your transformation context instead. */
7489
- const updatePropertyAccess: typeof factory.updatePropertyAccessExpression;
7490
- /** @deprecated Use `factory.createPropertyAccessChain` or the factory supplied by your transformation context instead. */
7491
- const createPropertyAccessChain: typeof factory.createPropertyAccessChain;
7492
- /** @deprecated Use `factory.updatePropertyAccessChain` or the factory supplied by your transformation context instead. */
7493
- const updatePropertyAccessChain: typeof factory.updatePropertyAccessChain;
7494
- /** @deprecated Use `factory.createElementAccessExpression` or the factory supplied by your transformation context instead. */
7495
- const createElementAccess: typeof factory.createElementAccessExpression;
7496
- /** @deprecated Use `factory.updateElementAccessExpression` or the factory supplied by your transformation context instead. */
7497
- const updateElementAccess: typeof factory.updateElementAccessExpression;
7498
- /** @deprecated Use `factory.createElementAccessChain` or the factory supplied by your transformation context instead. */
7499
- const createElementAccessChain: typeof factory.createElementAccessChain;
7500
- /** @deprecated Use `factory.updateElementAccessChain` or the factory supplied by your transformation context instead. */
7501
- const updateElementAccessChain: typeof factory.updateElementAccessChain;
7502
- /** @deprecated Use `factory.createCallExpression` or the factory supplied by your transformation context instead. */
7503
- const createCall: typeof factory.createCallExpression;
7504
- /** @deprecated Use `factory.updateCallExpression` or the factory supplied by your transformation context instead. */
7505
- const updateCall: typeof factory.updateCallExpression;
7506
- /** @deprecated Use `factory.createCallChain` or the factory supplied by your transformation context instead. */
7507
- const createCallChain: typeof factory.createCallChain;
7508
- /** @deprecated Use `factory.updateCallChain` or the factory supplied by your transformation context instead. */
7509
- const updateCallChain: typeof factory.updateCallChain;
7510
- /** @deprecated Use `factory.createNewExpression` or the factory supplied by your transformation context instead. */
7511
- const createNew: typeof factory.createNewExpression;
7512
- /** @deprecated Use `factory.updateNewExpression` or the factory supplied by your transformation context instead. */
7513
- const updateNew: typeof factory.updateNewExpression;
7514
- /** @deprecated Use `factory.createTypeAssertion` or the factory supplied by your transformation context instead. */
7515
- const createTypeAssertion: typeof factory.createTypeAssertion;
7516
- /** @deprecated Use `factory.updateTypeAssertion` or the factory supplied by your transformation context instead. */
7517
- const updateTypeAssertion: typeof factory.updateTypeAssertion;
7518
- /** @deprecated Use `factory.createParenthesizedExpression` or the factory supplied by your transformation context instead. */
7519
- const createParen: typeof factory.createParenthesizedExpression;
7520
- /** @deprecated Use `factory.updateParenthesizedExpression` or the factory supplied by your transformation context instead. */
7521
- const updateParen: typeof factory.updateParenthesizedExpression;
7522
- /** @deprecated Use `factory.createFunctionExpression` or the factory supplied by your transformation context instead. */
7523
- const createFunctionExpression: typeof factory.createFunctionExpression;
7524
- /** @deprecated Use `factory.updateFunctionExpression` or the factory supplied by your transformation context instead. */
7525
- const updateFunctionExpression: typeof factory.updateFunctionExpression;
7526
- /** @deprecated Use `factory.createDeleteExpression` or the factory supplied by your transformation context instead. */
7527
- const createDelete: typeof factory.createDeleteExpression;
7528
- /** @deprecated Use `factory.updateDeleteExpression` or the factory supplied by your transformation context instead. */
7529
- const updateDelete: typeof factory.updateDeleteExpression;
7530
- /** @deprecated Use `factory.createTypeOfExpression` or the factory supplied by your transformation context instead. */
7531
- const createTypeOf: typeof factory.createTypeOfExpression;
7532
- /** @deprecated Use `factory.updateTypeOfExpression` or the factory supplied by your transformation context instead. */
7533
- const updateTypeOf: typeof factory.updateTypeOfExpression;
7534
- /** @deprecated Use `factory.createVoidExpression` or the factory supplied by your transformation context instead. */
7535
- const createVoid: typeof factory.createVoidExpression;
7536
- /** @deprecated Use `factory.updateVoidExpression` or the factory supplied by your transformation context instead. */
7537
- const updateVoid: typeof factory.updateVoidExpression;
7538
- /** @deprecated Use `factory.createAwaitExpression` or the factory supplied by your transformation context instead. */
7539
- const createAwait: typeof factory.createAwaitExpression;
7540
- /** @deprecated Use `factory.updateAwaitExpression` or the factory supplied by your transformation context instead. */
7541
- const updateAwait: typeof factory.updateAwaitExpression;
7542
- /** @deprecated Use `factory.createPrefixExpression` or the factory supplied by your transformation context instead. */
7543
- const createPrefix: typeof factory.createPrefixUnaryExpression;
7544
- /** @deprecated Use `factory.updatePrefixExpression` or the factory supplied by your transformation context instead. */
7545
- const updatePrefix: typeof factory.updatePrefixUnaryExpression;
7546
- /** @deprecated Use `factory.createPostfixUnaryExpression` or the factory supplied by your transformation context instead. */
7547
- const createPostfix: typeof factory.createPostfixUnaryExpression;
7548
- /** @deprecated Use `factory.updatePostfixUnaryExpression` or the factory supplied by your transformation context instead. */
7549
- const updatePostfix: typeof factory.updatePostfixUnaryExpression;
7550
- /** @deprecated Use `factory.createBinaryExpression` or the factory supplied by your transformation context instead. */
7551
- const createBinary: typeof factory.createBinaryExpression;
7552
- /** @deprecated Use `factory.updateConditionalExpression` or the factory supplied by your transformation context instead. */
7553
- const updateConditional: typeof factory.updateConditionalExpression;
7554
- /** @deprecated Use `factory.createTemplateExpression` or the factory supplied by your transformation context instead. */
7555
- const createTemplateExpression: typeof factory.createTemplateExpression;
7556
- /** @deprecated Use `factory.updateTemplateExpression` or the factory supplied by your transformation context instead. */
7557
- const updateTemplateExpression: typeof factory.updateTemplateExpression;
7558
- /** @deprecated Use `factory.createTemplateHead` or the factory supplied by your transformation context instead. */
7559
- const createTemplateHead: typeof factory.createTemplateHead;
7560
- /** @deprecated Use `factory.createTemplateMiddle` or the factory supplied by your transformation context instead. */
7561
- const createTemplateMiddle: typeof factory.createTemplateMiddle;
7562
- /** @deprecated Use `factory.createTemplateTail` or the factory supplied by your transformation context instead. */
7563
- const createTemplateTail: typeof factory.createTemplateTail;
7564
- /** @deprecated Use `factory.createNoSubstitutionTemplateLiteral` or the factory supplied by your transformation context instead. */
7565
- const createNoSubstitutionTemplateLiteral: typeof factory.createNoSubstitutionTemplateLiteral;
7566
- /** @deprecated Use `factory.updateYieldExpression` or the factory supplied by your transformation context instead. */
7567
- const updateYield: typeof factory.updateYieldExpression;
7568
- /** @deprecated Use `factory.createSpreadExpression` or the factory supplied by your transformation context instead. */
7569
- const createSpread: typeof factory.createSpreadElement;
7570
- /** @deprecated Use `factory.updateSpreadExpression` or the factory supplied by your transformation context instead. */
7571
- const updateSpread: typeof factory.updateSpreadElement;
7572
- /** @deprecated Use `factory.createOmittedExpression` or the factory supplied by your transformation context instead. */
7573
- const createOmittedExpression: typeof factory.createOmittedExpression;
7574
- /** @deprecated Use `factory.createAsExpression` or the factory supplied by your transformation context instead. */
7575
- const createAsExpression: typeof factory.createAsExpression;
7576
- /** @deprecated Use `factory.updateAsExpression` or the factory supplied by your transformation context instead. */
7577
- const updateAsExpression: typeof factory.updateAsExpression;
7578
- /** @deprecated Use `factory.createNonNullExpression` or the factory supplied by your transformation context instead. */
7579
- const createNonNullExpression: typeof factory.createNonNullExpression;
7580
- /** @deprecated Use `factory.updateNonNullExpression` or the factory supplied by your transformation context instead. */
7581
- const updateNonNullExpression: typeof factory.updateNonNullExpression;
7582
- /** @deprecated Use `factory.createNonNullChain` or the factory supplied by your transformation context instead. */
7583
- const createNonNullChain: typeof factory.createNonNullChain;
7584
- /** @deprecated Use `factory.updateNonNullChain` or the factory supplied by your transformation context instead. */
7585
- const updateNonNullChain: typeof factory.updateNonNullChain;
7586
- /** @deprecated Use `factory.createMetaProperty` or the factory supplied by your transformation context instead. */
7587
- const createMetaProperty: typeof factory.createMetaProperty;
7588
- /** @deprecated Use `factory.updateMetaProperty` or the factory supplied by your transformation context instead. */
7589
- const updateMetaProperty: typeof factory.updateMetaProperty;
7590
- /** @deprecated Use `factory.createTemplateSpan` or the factory supplied by your transformation context instead. */
7591
- const createTemplateSpan: typeof factory.createTemplateSpan;
7592
- /** @deprecated Use `factory.updateTemplateSpan` or the factory supplied by your transformation context instead. */
7593
- const updateTemplateSpan: typeof factory.updateTemplateSpan;
7594
- /** @deprecated Use `factory.createSemicolonClassElement` or the factory supplied by your transformation context instead. */
7595
- const createSemicolonClassElement: typeof factory.createSemicolonClassElement;
7596
- /** @deprecated Use `factory.createBlock` or the factory supplied by your transformation context instead. */
7597
- const createBlock: typeof factory.createBlock;
7598
- /** @deprecated Use `factory.updateBlock` or the factory supplied by your transformation context instead. */
7599
- const updateBlock: typeof factory.updateBlock;
7600
- /** @deprecated Use `factory.createVariableStatement` or the factory supplied by your transformation context instead. */
7601
- const createVariableStatement: typeof factory.createVariableStatement;
7602
- /** @deprecated Use `factory.updateVariableStatement` or the factory supplied by your transformation context instead. */
7603
- const updateVariableStatement: typeof factory.updateVariableStatement;
7604
- /** @deprecated Use `factory.createEmptyStatement` or the factory supplied by your transformation context instead. */
7605
- const createEmptyStatement: typeof factory.createEmptyStatement;
7606
- /** @deprecated Use `factory.createExpressionStatement` or the factory supplied by your transformation context instead. */
7607
- const createExpressionStatement: typeof factory.createExpressionStatement;
7608
- /** @deprecated Use `factory.updateExpressionStatement` or the factory supplied by your transformation context instead. */
7609
- const updateExpressionStatement: typeof factory.updateExpressionStatement;
7610
- /** @deprecated Use `factory.createExpressionStatement` or the factory supplied by your transformation context instead. */
7611
- const createStatement: typeof factory.createExpressionStatement;
7612
- /** @deprecated Use `factory.updateExpressionStatement` or the factory supplied by your transformation context instead. */
7613
- const updateStatement: typeof factory.updateExpressionStatement;
7614
- /** @deprecated Use `factory.createIfStatement` or the factory supplied by your transformation context instead. */
7615
- const createIf: typeof factory.createIfStatement;
7616
- /** @deprecated Use `factory.updateIfStatement` or the factory supplied by your transformation context instead. */
7617
- const updateIf: typeof factory.updateIfStatement;
7618
- /** @deprecated Use `factory.createDoStatement` or the factory supplied by your transformation context instead. */
7619
- const createDo: typeof factory.createDoStatement;
7620
- /** @deprecated Use `factory.updateDoStatement` or the factory supplied by your transformation context instead. */
7621
- const updateDo: typeof factory.updateDoStatement;
7622
- /** @deprecated Use `factory.createWhileStatement` or the factory supplied by your transformation context instead. */
7623
- const createWhile: typeof factory.createWhileStatement;
7624
- /** @deprecated Use `factory.updateWhileStatement` or the factory supplied by your transformation context instead. */
7625
- const updateWhile: typeof factory.updateWhileStatement;
7626
- /** @deprecated Use `factory.createForStatement` or the factory supplied by your transformation context instead. */
7627
- const createFor: typeof factory.createForStatement;
7628
- /** @deprecated Use `factory.updateForStatement` or the factory supplied by your transformation context instead. */
7629
- const updateFor: typeof factory.updateForStatement;
7630
- /** @deprecated Use `factory.createForInStatement` or the factory supplied by your transformation context instead. */
7631
- const createForIn: typeof factory.createForInStatement;
7632
- /** @deprecated Use `factory.updateForInStatement` or the factory supplied by your transformation context instead. */
7633
- const updateForIn: typeof factory.updateForInStatement;
7634
- /** @deprecated Use `factory.createForOfStatement` or the factory supplied by your transformation context instead. */
7635
- const createForOf: typeof factory.createForOfStatement;
7636
- /** @deprecated Use `factory.updateForOfStatement` or the factory supplied by your transformation context instead. */
7637
- const updateForOf: typeof factory.updateForOfStatement;
7638
- /** @deprecated Use `factory.createContinueStatement` or the factory supplied by your transformation context instead. */
7639
- const createContinue: typeof factory.createContinueStatement;
7640
- /** @deprecated Use `factory.updateContinueStatement` or the factory supplied by your transformation context instead. */
7641
- const updateContinue: typeof factory.updateContinueStatement;
7642
- /** @deprecated Use `factory.createBreakStatement` or the factory supplied by your transformation context instead. */
7643
- const createBreak: typeof factory.createBreakStatement;
7644
- /** @deprecated Use `factory.updateBreakStatement` or the factory supplied by your transformation context instead. */
7645
- const updateBreak: typeof factory.updateBreakStatement;
7646
- /** @deprecated Use `factory.createReturnStatement` or the factory supplied by your transformation context instead. */
7647
- const createReturn: typeof factory.createReturnStatement;
7648
- /** @deprecated Use `factory.updateReturnStatement` or the factory supplied by your transformation context instead. */
7649
- const updateReturn: typeof factory.updateReturnStatement;
7650
- /** @deprecated Use `factory.createWithStatement` or the factory supplied by your transformation context instead. */
7651
- const createWith: typeof factory.createWithStatement;
7652
- /** @deprecated Use `factory.updateWithStatement` or the factory supplied by your transformation context instead. */
7653
- const updateWith: typeof factory.updateWithStatement;
7654
- /** @deprecated Use `factory.createSwitchStatement` or the factory supplied by your transformation context instead. */
7655
- const createSwitch: typeof factory.createSwitchStatement;
7656
- /** @deprecated Use `factory.updateSwitchStatement` or the factory supplied by your transformation context instead. */
7657
- const updateSwitch: typeof factory.updateSwitchStatement;
7658
- /** @deprecated Use `factory.createLabelStatement` or the factory supplied by your transformation context instead. */
7659
- const createLabel: typeof factory.createLabeledStatement;
7660
- /** @deprecated Use `factory.updateLabelStatement` or the factory supplied by your transformation context instead. */
7661
- const updateLabel: typeof factory.updateLabeledStatement;
7662
- /** @deprecated Use `factory.createThrowStatement` or the factory supplied by your transformation context instead. */
7663
- const createThrow: typeof factory.createThrowStatement;
7664
- /** @deprecated Use `factory.updateThrowStatement` or the factory supplied by your transformation context instead. */
7665
- const updateThrow: typeof factory.updateThrowStatement;
7666
- /** @deprecated Use `factory.createTryStatement` or the factory supplied by your transformation context instead. */
7667
- const createTry: typeof factory.createTryStatement;
7668
- /** @deprecated Use `factory.updateTryStatement` or the factory supplied by your transformation context instead. */
7669
- const updateTry: typeof factory.updateTryStatement;
7670
- /** @deprecated Use `factory.createDebuggerStatement` or the factory supplied by your transformation context instead. */
7671
- const createDebuggerStatement: typeof factory.createDebuggerStatement;
7672
- /** @deprecated Use `factory.createVariableDeclarationList` or the factory supplied by your transformation context instead. */
7673
- const createVariableDeclarationList: typeof factory.createVariableDeclarationList;
7674
- /** @deprecated Use `factory.updateVariableDeclarationList` or the factory supplied by your transformation context instead. */
7675
- const updateVariableDeclarationList: typeof factory.updateVariableDeclarationList;
7676
- /** @deprecated Use `factory.createFunctionDeclaration` or the factory supplied by your transformation context instead. */
7677
- const createFunctionDeclaration: typeof factory.createFunctionDeclaration;
7678
- /** @deprecated Use `factory.updateFunctionDeclaration` or the factory supplied by your transformation context instead. */
7679
- const updateFunctionDeclaration: typeof factory.updateFunctionDeclaration;
7680
- /** @deprecated Use `factory.createClassDeclaration` or the factory supplied by your transformation context instead. */
7681
- const createClassDeclaration: typeof factory.createClassDeclaration;
7682
- /** @deprecated Use `factory.updateClassDeclaration` or the factory supplied by your transformation context instead. */
7683
- const updateClassDeclaration: typeof factory.updateClassDeclaration;
7684
- /** @deprecated Use `factory.createInterfaceDeclaration` or the factory supplied by your transformation context instead. */
7685
- const createInterfaceDeclaration: typeof factory.createInterfaceDeclaration;
7686
- /** @deprecated Use `factory.updateInterfaceDeclaration` or the factory supplied by your transformation context instead. */
7687
- const updateInterfaceDeclaration: typeof factory.updateInterfaceDeclaration;
7688
- /** @deprecated Use `factory.createTypeAliasDeclaration` or the factory supplied by your transformation context instead. */
7689
- const createTypeAliasDeclaration: typeof factory.createTypeAliasDeclaration;
7690
- /** @deprecated Use `factory.updateTypeAliasDeclaration` or the factory supplied by your transformation context instead. */
7691
- const updateTypeAliasDeclaration: typeof factory.updateTypeAliasDeclaration;
7692
- /** @deprecated Use `factory.createEnumDeclaration` or the factory supplied by your transformation context instead. */
7693
- const createEnumDeclaration: typeof factory.createEnumDeclaration;
7694
- /** @deprecated Use `factory.updateEnumDeclaration` or the factory supplied by your transformation context instead. */
7695
- const updateEnumDeclaration: typeof factory.updateEnumDeclaration;
7696
- /** @deprecated Use `factory.createModuleDeclaration` or the factory supplied by your transformation context instead. */
7697
- const createModuleDeclaration: typeof factory.createModuleDeclaration;
7698
- /** @deprecated Use `factory.updateModuleDeclaration` or the factory supplied by your transformation context instead. */
7699
- const updateModuleDeclaration: typeof factory.updateModuleDeclaration;
7700
- /** @deprecated Use `factory.createModuleBlock` or the factory supplied by your transformation context instead. */
7701
- const createModuleBlock: typeof factory.createModuleBlock;
7702
- /** @deprecated Use `factory.updateModuleBlock` or the factory supplied by your transformation context instead. */
7703
- const updateModuleBlock: typeof factory.updateModuleBlock;
7704
- /** @deprecated Use `factory.createCaseBlock` or the factory supplied by your transformation context instead. */
7705
- const createCaseBlock: typeof factory.createCaseBlock;
7706
- /** @deprecated Use `factory.updateCaseBlock` or the factory supplied by your transformation context instead. */
7707
- const updateCaseBlock: typeof factory.updateCaseBlock;
7708
- /** @deprecated Use `factory.createNamespaceExportDeclaration` or the factory supplied by your transformation context instead. */
7709
- const createNamespaceExportDeclaration: typeof factory.createNamespaceExportDeclaration;
7710
- /** @deprecated Use `factory.updateNamespaceExportDeclaration` or the factory supplied by your transformation context instead. */
7711
- const updateNamespaceExportDeclaration: typeof factory.updateNamespaceExportDeclaration;
7712
- /** @deprecated Use `factory.createImportEqualsDeclaration` or the factory supplied by your transformation context instead. */
7713
- const createImportEqualsDeclaration: typeof factory.createImportEqualsDeclaration;
7714
- /** @deprecated Use `factory.updateImportEqualsDeclaration` or the factory supplied by your transformation context instead. */
7715
- const updateImportEqualsDeclaration: typeof factory.updateImportEqualsDeclaration;
7716
- /** @deprecated Use `factory.createImportDeclaration` or the factory supplied by your transformation context instead. */
7717
- const createImportDeclaration: typeof factory.createImportDeclaration;
7718
- /** @deprecated Use `factory.updateImportDeclaration` or the factory supplied by your transformation context instead. */
7719
- const updateImportDeclaration: typeof factory.updateImportDeclaration;
7720
- /** @deprecated Use `factory.createNamespaceImport` or the factory supplied by your transformation context instead. */
7721
- const createNamespaceImport: typeof factory.createNamespaceImport;
7722
- /** @deprecated Use `factory.updateNamespaceImport` or the factory supplied by your transformation context instead. */
7723
- const updateNamespaceImport: typeof factory.updateNamespaceImport;
7724
- /** @deprecated Use `factory.createNamedImports` or the factory supplied by your transformation context instead. */
7725
- const createNamedImports: typeof factory.createNamedImports;
7726
- /** @deprecated Use `factory.updateNamedImports` or the factory supplied by your transformation context instead. */
7727
- const updateNamedImports: typeof factory.updateNamedImports;
7728
- /** @deprecated Use `factory.createImportSpecifier` or the factory supplied by your transformation context instead. */
7729
- const createImportSpecifier: typeof factory.createImportSpecifier;
7730
- /** @deprecated Use `factory.updateImportSpecifier` or the factory supplied by your transformation context instead. */
7731
- const updateImportSpecifier: typeof factory.updateImportSpecifier;
7732
- /** @deprecated Use `factory.createExportAssignment` or the factory supplied by your transformation context instead. */
7733
- const createExportAssignment: typeof factory.createExportAssignment;
7734
- /** @deprecated Use `factory.updateExportAssignment` or the factory supplied by your transformation context instead. */
7735
- const updateExportAssignment: typeof factory.updateExportAssignment;
7736
- /** @deprecated Use `factory.createNamedExports` or the factory supplied by your transformation context instead. */
7737
- const createNamedExports: typeof factory.createNamedExports;
7738
- /** @deprecated Use `factory.updateNamedExports` or the factory supplied by your transformation context instead. */
7739
- const updateNamedExports: typeof factory.updateNamedExports;
7740
- /** @deprecated Use `factory.createExportSpecifier` or the factory supplied by your transformation context instead. */
7741
- const createExportSpecifier: typeof factory.createExportSpecifier;
7742
- /** @deprecated Use `factory.updateExportSpecifier` or the factory supplied by your transformation context instead. */
7743
- const updateExportSpecifier: typeof factory.updateExportSpecifier;
7744
- /** @deprecated Use `factory.createExternalModuleReference` or the factory supplied by your transformation context instead. */
7745
- const createExternalModuleReference: typeof factory.createExternalModuleReference;
7746
- /** @deprecated Use `factory.updateExternalModuleReference` or the factory supplied by your transformation context instead. */
7747
- const updateExternalModuleReference: typeof factory.updateExternalModuleReference;
7748
- /** @deprecated Use `factory.createJSDocTypeExpression` or the factory supplied by your transformation context instead. */
7749
- const createJSDocTypeExpression: typeof factory.createJSDocTypeExpression;
7750
- /** @deprecated Use `factory.createJSDocTypeTag` or the factory supplied by your transformation context instead. */
7751
- const createJSDocTypeTag: typeof factory.createJSDocTypeTag;
7752
- /** @deprecated Use `factory.createJSDocReturnTag` or the factory supplied by your transformation context instead. */
7753
- const createJSDocReturnTag: typeof factory.createJSDocReturnTag;
7754
- /** @deprecated Use `factory.createJSDocThisTag` or the factory supplied by your transformation context instead. */
7755
- const createJSDocThisTag: typeof factory.createJSDocThisTag;
7756
- /** @deprecated Use `factory.createJSDocComment` or the factory supplied by your transformation context instead. */
7757
- const createJSDocComment: typeof factory.createJSDocComment;
7758
- /** @deprecated Use `factory.createJSDocParameterTag` or the factory supplied by your transformation context instead. */
7759
- const createJSDocParameterTag: typeof factory.createJSDocParameterTag;
7760
- /** @deprecated Use `factory.createJSDocClassTag` or the factory supplied by your transformation context instead. */
7761
- const createJSDocClassTag: typeof factory.createJSDocClassTag;
7762
- /** @deprecated Use `factory.createJSDocAugmentsTag` or the factory supplied by your transformation context instead. */
7763
- const createJSDocAugmentsTag: typeof factory.createJSDocAugmentsTag;
7764
- /** @deprecated Use `factory.createJSDocEnumTag` or the factory supplied by your transformation context instead. */
7765
- const createJSDocEnumTag: typeof factory.createJSDocEnumTag;
7766
- /** @deprecated Use `factory.createJSDocTemplateTag` or the factory supplied by your transformation context instead. */
7767
- const createJSDocTemplateTag: typeof factory.createJSDocTemplateTag;
7768
- /** @deprecated Use `factory.createJSDocTypedefTag` or the factory supplied by your transformation context instead. */
7769
- const createJSDocTypedefTag: typeof factory.createJSDocTypedefTag;
7770
- /** @deprecated Use `factory.createJSDocCallbackTag` or the factory supplied by your transformation context instead. */
7771
- const createJSDocCallbackTag: typeof factory.createJSDocCallbackTag;
7772
- /** @deprecated Use `factory.createJSDocSignature` or the factory supplied by your transformation context instead. */
7773
- const createJSDocSignature: typeof factory.createJSDocSignature;
7774
- /** @deprecated Use `factory.createJSDocPropertyTag` or the factory supplied by your transformation context instead. */
7775
- const createJSDocPropertyTag: typeof factory.createJSDocPropertyTag;
7776
- /** @deprecated Use `factory.createJSDocTypeLiteral` or the factory supplied by your transformation context instead. */
7777
- const createJSDocTypeLiteral: typeof factory.createJSDocTypeLiteral;
7778
- /** @deprecated Use `factory.createJSDocImplementsTag` or the factory supplied by your transformation context instead. */
7779
- const createJSDocImplementsTag: typeof factory.createJSDocImplementsTag;
7780
- /** @deprecated Use `factory.createJSDocAuthorTag` or the factory supplied by your transformation context instead. */
7781
- const createJSDocAuthorTag: typeof factory.createJSDocAuthorTag;
7782
- /** @deprecated Use `factory.createJSDocPublicTag` or the factory supplied by your transformation context instead. */
7783
- const createJSDocPublicTag: typeof factory.createJSDocPublicTag;
7784
- /** @deprecated Use `factory.createJSDocPrivateTag` or the factory supplied by your transformation context instead. */
7785
- const createJSDocPrivateTag: typeof factory.createJSDocPrivateTag;
7786
- /** @deprecated Use `factory.createJSDocProtectedTag` or the factory supplied by your transformation context instead. */
7787
- const createJSDocProtectedTag: typeof factory.createJSDocProtectedTag;
7788
- /** @deprecated Use `factory.createJSDocReadonlyTag` or the factory supplied by your transformation context instead. */
7789
- const createJSDocReadonlyTag: typeof factory.createJSDocReadonlyTag;
7790
- /** @deprecated Use `factory.createJSDocUnknownTag` or the factory supplied by your transformation context instead. */
7791
- const createJSDocTag: typeof factory.createJSDocUnknownTag;
7792
- /** @deprecated Use `factory.createJsxElement` or the factory supplied by your transformation context instead. */
7793
- const createJsxElement: typeof factory.createJsxElement;
7794
- /** @deprecated Use `factory.updateJsxElement` or the factory supplied by your transformation context instead. */
7795
- const updateJsxElement: typeof factory.updateJsxElement;
7796
- /** @deprecated Use `factory.createJsxSelfClosingElement` or the factory supplied by your transformation context instead. */
7797
- const createJsxSelfClosingElement: typeof factory.createJsxSelfClosingElement;
7798
- /** @deprecated Use `factory.updateJsxSelfClosingElement` or the factory supplied by your transformation context instead. */
7799
- const updateJsxSelfClosingElement: typeof factory.updateJsxSelfClosingElement;
7800
- /** @deprecated Use `factory.createJsxOpeningElement` or the factory supplied by your transformation context instead. */
7801
- const createJsxOpeningElement: typeof factory.createJsxOpeningElement;
7802
- /** @deprecated Use `factory.updateJsxOpeningElement` or the factory supplied by your transformation context instead. */
7803
- const updateJsxOpeningElement: typeof factory.updateJsxOpeningElement;
7804
- /** @deprecated Use `factory.createJsxClosingElement` or the factory supplied by your transformation context instead. */
7805
- const createJsxClosingElement: typeof factory.createJsxClosingElement;
7806
- /** @deprecated Use `factory.updateJsxClosingElement` or the factory supplied by your transformation context instead. */
7807
- const updateJsxClosingElement: typeof factory.updateJsxClosingElement;
7808
- /** @deprecated Use `factory.createJsxFragment` or the factory supplied by your transformation context instead. */
7809
- const createJsxFragment: typeof factory.createJsxFragment;
7810
- /** @deprecated Use `factory.createJsxText` or the factory supplied by your transformation context instead. */
7811
- const createJsxText: typeof factory.createJsxText;
7812
- /** @deprecated Use `factory.updateJsxText` or the factory supplied by your transformation context instead. */
7813
- const updateJsxText: typeof factory.updateJsxText;
7814
- /** @deprecated Use `factory.createJsxOpeningFragment` or the factory supplied by your transformation context instead. */
7815
- const createJsxOpeningFragment: typeof factory.createJsxOpeningFragment;
7816
- /** @deprecated Use `factory.createJsxJsxClosingFragment` or the factory supplied by your transformation context instead. */
7817
- const createJsxJsxClosingFragment: typeof factory.createJsxJsxClosingFragment;
7818
- /** @deprecated Use `factory.updateJsxFragment` or the factory supplied by your transformation context instead. */
7819
- const updateJsxFragment: typeof factory.updateJsxFragment;
7820
- /** @deprecated Use `factory.createJsxAttribute` or the factory supplied by your transformation context instead. */
7821
- const createJsxAttribute: typeof factory.createJsxAttribute;
7822
- /** @deprecated Use `factory.updateJsxAttribute` or the factory supplied by your transformation context instead. */
7823
- const updateJsxAttribute: typeof factory.updateJsxAttribute;
7824
- /** @deprecated Use `factory.createJsxAttributes` or the factory supplied by your transformation context instead. */
7825
- const createJsxAttributes: typeof factory.createJsxAttributes;
7826
- /** @deprecated Use `factory.updateJsxAttributes` or the factory supplied by your transformation context instead. */
7827
- const updateJsxAttributes: typeof factory.updateJsxAttributes;
7828
- /** @deprecated Use `factory.createJsxSpreadAttribute` or the factory supplied by your transformation context instead. */
7829
- const createJsxSpreadAttribute: typeof factory.createJsxSpreadAttribute;
7830
- /** @deprecated Use `factory.updateJsxSpreadAttribute` or the factory supplied by your transformation context instead. */
7831
- const updateJsxSpreadAttribute: typeof factory.updateJsxSpreadAttribute;
7832
- /** @deprecated Use `factory.createJsxExpression` or the factory supplied by your transformation context instead. */
7833
- const createJsxExpression: typeof factory.createJsxExpression;
7834
- /** @deprecated Use `factory.updateJsxExpression` or the factory supplied by your transformation context instead. */
7835
- const updateJsxExpression: typeof factory.updateJsxExpression;
7836
- /** @deprecated Use `factory.createCaseClause` or the factory supplied by your transformation context instead. */
7837
- const createCaseClause: typeof factory.createCaseClause;
7838
- /** @deprecated Use `factory.updateCaseClause` or the factory supplied by your transformation context instead. */
7839
- const updateCaseClause: typeof factory.updateCaseClause;
7840
- /** @deprecated Use `factory.createDefaultClause` or the factory supplied by your transformation context instead. */
7841
- const createDefaultClause: typeof factory.createDefaultClause;
7842
- /** @deprecated Use `factory.updateDefaultClause` or the factory supplied by your transformation context instead. */
7843
- const updateDefaultClause: typeof factory.updateDefaultClause;
7844
- /** @deprecated Use `factory.createHeritageClause` or the factory supplied by your transformation context instead. */
7845
- const createHeritageClause: typeof factory.createHeritageClause;
7846
- /** @deprecated Use `factory.updateHeritageClause` or the factory supplied by your transformation context instead. */
7847
- const updateHeritageClause: typeof factory.updateHeritageClause;
7848
- /** @deprecated Use `factory.createCatchClause` or the factory supplied by your transformation context instead. */
7849
- const createCatchClause: typeof factory.createCatchClause;
7850
- /** @deprecated Use `factory.updateCatchClause` or the factory supplied by your transformation context instead. */
7851
- const updateCatchClause: typeof factory.updateCatchClause;
7852
- /** @deprecated Use `factory.createPropertyAssignment` or the factory supplied by your transformation context instead. */
7853
- const createPropertyAssignment: typeof factory.createPropertyAssignment;
7854
- /** @deprecated Use `factory.updatePropertyAssignment` or the factory supplied by your transformation context instead. */
7855
- const updatePropertyAssignment: typeof factory.updatePropertyAssignment;
7856
- /** @deprecated Use `factory.createShorthandPropertyAssignment` or the factory supplied by your transformation context instead. */
7857
- const createShorthandPropertyAssignment: typeof factory.createShorthandPropertyAssignment;
7858
- /** @deprecated Use `factory.updateShorthandPropertyAssignment` or the factory supplied by your transformation context instead. */
7859
- const updateShorthandPropertyAssignment: typeof factory.updateShorthandPropertyAssignment;
7860
- /** @deprecated Use `factory.createSpreadAssignment` or the factory supplied by your transformation context instead. */
7861
- const createSpreadAssignment: typeof factory.createSpreadAssignment;
7862
- /** @deprecated Use `factory.updateSpreadAssignment` or the factory supplied by your transformation context instead. */
7863
- const updateSpreadAssignment: typeof factory.updateSpreadAssignment;
7864
- /** @deprecated Use `factory.createEnumMember` or the factory supplied by your transformation context instead. */
7865
- const createEnumMember: typeof factory.createEnumMember;
7866
- /** @deprecated Use `factory.updateEnumMember` or the factory supplied by your transformation context instead. */
7867
- const updateEnumMember: typeof factory.updateEnumMember;
7868
- /** @deprecated Use `factory.updateSourceFile` or the factory supplied by your transformation context instead. */
7869
- const updateSourceFileNode: typeof factory.updateSourceFile;
7870
- /** @deprecated Use `factory.createNotEmittedStatement` or the factory supplied by your transformation context instead. */
7871
- const createNotEmittedStatement: typeof factory.createNotEmittedStatement;
7872
- /** @deprecated Use `factory.createPartiallyEmittedExpression` or the factory supplied by your transformation context instead. */
7873
- const createPartiallyEmittedExpression: typeof factory.createPartiallyEmittedExpression;
7874
- /** @deprecated Use `factory.updatePartiallyEmittedExpression` or the factory supplied by your transformation context instead. */
7875
- const updatePartiallyEmittedExpression: typeof factory.updatePartiallyEmittedExpression;
7876
- /** @deprecated Use `factory.createCommaListExpression` or the factory supplied by your transformation context instead. */
7877
- const createCommaList: typeof factory.createCommaListExpression;
7878
- /** @deprecated Use `factory.updateCommaListExpression` or the factory supplied by your transformation context instead. */
7879
- const updateCommaList: typeof factory.updateCommaListExpression;
7880
- /** @deprecated Use `factory.createBundle` or the factory supplied by your transformation context instead. */
7881
- const createBundle: typeof factory.createBundle;
7882
- /** @deprecated Use `factory.updateBundle` or the factory supplied by your transformation context instead. */
7883
- const updateBundle: typeof factory.updateBundle;
7884
- /** @deprecated Use `factory.createImmediatelyInvokedFunctionExpression` or the factory supplied by your transformation context instead. */
7885
- const createImmediatelyInvokedFunctionExpression: typeof factory.createImmediatelyInvokedFunctionExpression;
7886
- /** @deprecated Use `factory.createImmediatelyInvokedArrowFunction` or the factory supplied by your transformation context instead. */
7887
- const createImmediatelyInvokedArrowFunction: typeof factory.createImmediatelyInvokedArrowFunction;
7888
- /** @deprecated Use `factory.createVoidZero` or the factory supplied by your transformation context instead. */
7889
- const createVoidZero: typeof factory.createVoidZero;
7890
- /** @deprecated Use `factory.createExportDefault` or the factory supplied by your transformation context instead. */
7891
- const createExportDefault: typeof factory.createExportDefault;
7892
- /** @deprecated Use `factory.createExternalModuleExport` or the factory supplied by your transformation context instead. */
7893
- const createExternalModuleExport: typeof factory.createExternalModuleExport;
7894
- /** @deprecated Use `factory.createNamespaceExport` or the factory supplied by your transformation context instead. */
7895
- const createNamespaceExport: typeof factory.createNamespaceExport;
7896
- /** @deprecated Use `factory.updateNamespaceExport` or the factory supplied by your transformation context instead. */
7897
- const updateNamespaceExport: typeof factory.updateNamespaceExport;
7898
- /** @deprecated Use `factory.createToken` or the factory supplied by your transformation context instead. */
7899
- const createToken: <TKind extends SyntaxKind>(kind: TKind) => Token<TKind>;
7900
- /** @deprecated Use `factory.createIdentifier` or the factory supplied by your transformation context instead. */
7901
- const createIdentifier: (text: string) => Identifier;
7902
- /** @deprecated Use `factory.createTempVariable` or the factory supplied by your transformation context instead. */
7903
- const createTempVariable: (recordTempVariable: ((node: Identifier) => void) | undefined) => Identifier;
7904
- /** @deprecated Use `factory.getGeneratedNameForNode` or the factory supplied by your transformation context instead. */
7905
- const getGeneratedNameForNode: (node: Node | undefined) => Identifier;
7906
- /** @deprecated Use `factory.createUniqueName(text, GeneratedIdentifierFlags.Optimistic)` or the factory supplied by your transformation context instead. */
7907
- const createOptimisticUniqueName: (text: string) => Identifier;
7908
- /** @deprecated Use `factory.createUniqueName(text, GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel)` or the factory supplied by your transformation context instead. */
7909
- const createFileLevelUniqueName: (text: string) => Identifier;
7910
- /** @deprecated Use `factory.createIndexSignature` or the factory supplied by your transformation context instead. */
7911
- const createIndexSignature: (decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode) => IndexSignatureDeclaration;
7912
- /** @deprecated Use `factory.createTypePredicateNode` or the factory supplied by your transformation context instead. */
7913
- const createTypePredicateNode: (parameterName: Identifier | ThisTypeNode | string, type: TypeNode) => TypePredicateNode;
7914
- /** @deprecated Use `factory.updateTypePredicateNode` or the factory supplied by your transformation context instead. */
7915
- const updateTypePredicateNode: (node: TypePredicateNode, parameterName: Identifier | ThisTypeNode, type: TypeNode) => TypePredicateNode;
7916
- /** @deprecated Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead. */
7917
- const createLiteral: {
7918
- (value: string | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | Identifier): StringLiteral;
7919
- (value: number | PseudoBigInt): NumericLiteral;
7920
- (value: boolean): BooleanLiteral;
7921
- (value: string | number | PseudoBigInt | boolean): PrimaryExpression;
7922
- };
7923
- /** @deprecated Use `factory.createMethodSignature` or the factory supplied by your transformation context instead. */
7924
- const createMethodSignature: (typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined) => MethodSignature;
7925
- /** @deprecated Use `factory.updateMethodSignature` or the factory supplied by your transformation context instead. */
7926
- const updateMethodSignature: (node: MethodSignature, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined, name: PropertyName, questionToken: QuestionToken | undefined) => MethodSignature;
7927
- /** @deprecated Use `factory.createTypeOperatorNode` or the factory supplied by your transformation context instead. */
7928
- const createTypeOperatorNode: {
7929
- (type: TypeNode): TypeOperatorNode;
7930
- (operator: SyntaxKind.KeyOfKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.ReadonlyKeyword, type: TypeNode): TypeOperatorNode;
7931
- };
7932
- /** @deprecated Use `factory.createTaggedTemplate` or the factory supplied by your transformation context instead. */
7933
- const createTaggedTemplate: {
7934
- (tag: Expression, template: TemplateLiteral): TaggedTemplateExpression;
7935
- (tag: Expression, typeArguments: readonly TypeNode[] | undefined, template: TemplateLiteral): TaggedTemplateExpression;
7936
- };
7937
- /** @deprecated Use `factory.updateTaggedTemplate` or the factory supplied by your transformation context instead. */
7938
- const updateTaggedTemplate: {
7939
- (node: TaggedTemplateExpression, tag: Expression, template: TemplateLiteral): TaggedTemplateExpression;
7940
- (node: TaggedTemplateExpression, tag: Expression, typeArguments: readonly TypeNode[] | undefined, template: TemplateLiteral): TaggedTemplateExpression;
7941
- };
7942
- /** @deprecated Use `factory.updateBinary` or the factory supplied by your transformation context instead. */
7943
- const updateBinary: (node: BinaryExpression, left: Expression, right: Expression, operator?: BinaryOperator | BinaryOperatorToken) => BinaryExpression;
7944
- /** @deprecated Use `factory.createConditional` or the factory supplied by your transformation context instead. */
7945
- const createConditional: {
7946
- (condition: Expression, whenTrue: Expression, whenFalse: Expression): ConditionalExpression;
7947
- (condition: Expression, questionToken: QuestionToken, whenTrue: Expression, colonToken: ColonToken, whenFalse: Expression): ConditionalExpression;
7948
- };
7949
- /** @deprecated Use `factory.createYield` or the factory supplied by your transformation context instead. */
7950
- const createYield: {
7951
- (expression?: Expression | undefined): YieldExpression;
7952
- (asteriskToken: AsteriskToken | undefined, expression: Expression): YieldExpression;
7953
- };
7954
- /** @deprecated Use `factory.createClassExpression` or the factory supplied by your transformation context instead. */
7955
- const createClassExpression: (modifiers: readonly Modifier[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]) => ClassExpression;
7956
- /** @deprecated Use `factory.updateClassExpression` or the factory supplied by your transformation context instead. */
7957
- const updateClassExpression: (node: ClassExpression, modifiers: readonly Modifier[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]) => ClassExpression;
7958
- /** @deprecated Use `factory.createPropertySignature` or the factory supplied by your transformation context instead. */
7959
- const createPropertySignature: (modifiers: readonly Modifier[] | undefined, name: PropertyName | string, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer?: Expression | undefined) => PropertySignature;
7960
- /** @deprecated Use `factory.updatePropertySignature` or the factory supplied by your transformation context instead. */
7961
- const updatePropertySignature: (node: PropertySignature, modifiers: readonly Modifier[] | undefined, name: PropertyName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined) => PropertySignature;
7962
- /** @deprecated Use `factory.createExpressionWithTypeArguments` or the factory supplied by your transformation context instead. */
7963
- const createExpressionWithTypeArguments: (typeArguments: readonly TypeNode[] | undefined, expression: Expression) => ExpressionWithTypeArguments;
7964
- /** @deprecated Use `factory.updateExpressionWithTypeArguments` or the factory supplied by your transformation context instead. */
7965
- const updateExpressionWithTypeArguments: (node: ExpressionWithTypeArguments, typeArguments: readonly TypeNode[] | undefined, expression: Expression) => ExpressionWithTypeArguments;
7966
- /** @deprecated Use `factory.createArrowFunction` or the factory supplied by your transformation context instead. */
7967
- const createArrowFunction: {
7968
- (modifiers: readonly Modifier[] | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, equalsGreaterThanToken: EqualsGreaterThanToken | undefined, body: ConciseBody): ArrowFunction;
7969
- (modifiers: readonly Modifier[] | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: ConciseBody): ArrowFunction;
7970
- };
7971
- /** @deprecated Use `factory.updateArrowFunction` or the factory supplied by your transformation context instead. */
7972
- const updateArrowFunction: {
7973
- (node: ArrowFunction, modifiers: readonly Modifier[] | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, equalsGreaterThanToken: EqualsGreaterThanToken, body: ConciseBody): ArrowFunction;
7974
- (node: ArrowFunction, modifiers: readonly Modifier[] | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: ConciseBody): ArrowFunction;
7975
- };
7976
- /** @deprecated Use `factory.createVariableDeclaration` or the factory supplied by your transformation context instead. */
7977
- const createVariableDeclaration: {
7978
- (name: string | BindingName, type?: TypeNode | undefined, initializer?: Expression | undefined): VariableDeclaration;
7979
- (name: string | BindingName, exclamationToken: ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): VariableDeclaration;
7980
- };
7981
- /** @deprecated Use `factory.updateVariableDeclaration` or the factory supplied by your transformation context instead. */
7982
- const updateVariableDeclaration: {
7983
- (node: VariableDeclaration, name: BindingName, type: TypeNode | undefined, initializer: Expression | undefined): VariableDeclaration;
7984
- (node: VariableDeclaration, name: BindingName, exclamationToken: ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): VariableDeclaration;
7985
- };
7986
- /** @deprecated Use `factory.createImportClause` or the factory supplied by your transformation context instead. */
7987
- const createImportClause: (name: Identifier | undefined, namedBindings: NamedImportBindings | undefined, isTypeOnly?: any) => ImportClause;
7988
- /** @deprecated Use `factory.updateImportClause` or the factory supplied by your transformation context instead. */
7989
- const updateImportClause: (node: ImportClause, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined, isTypeOnly: boolean) => ImportClause;
7990
- /** @deprecated Use `factory.createExportDeclaration` or the factory supplied by your transformation context instead. */
7991
- const createExportDeclaration: (decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression | undefined, isTypeOnly?: any) => ExportDeclaration;
7992
- /** @deprecated Use `factory.updateExportDeclaration` or the factory supplied by your transformation context instead. */
7993
- const updateExportDeclaration: (node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, isTypeOnly: boolean) => ExportDeclaration;
7994
- /** @deprecated Use `factory.createJSDocParameterTag` or the factory supplied by your transformation context instead. */
7995
- const createJSDocParamTag: (name: EntityName, isBracketed: boolean, typeExpression?: JSDocTypeExpression | undefined, comment?: string | undefined) => JSDocParameterTag;
7996
- /** @deprecated Use `factory.createComma` or the factory supplied by your transformation context instead. */
7997
- const createComma: (left: Expression, right: Expression) => Expression;
7998
- /** @deprecated Use `factory.createLessThan` or the factory supplied by your transformation context instead. */
7999
- const createLessThan: (left: Expression, right: Expression) => Expression;
8000
- /** @deprecated Use `factory.createAssignment` or the factory supplied by your transformation context instead. */
8001
- const createAssignment: (left: Expression, right: Expression) => BinaryExpression;
8002
- /** @deprecated Use `factory.createStrictEquality` or the factory supplied by your transformation context instead. */
8003
- const createStrictEquality: (left: Expression, right: Expression) => BinaryExpression;
8004
- /** @deprecated Use `factory.createStrictInequality` or the factory supplied by your transformation context instead. */
8005
- const createStrictInequality: (left: Expression, right: Expression) => BinaryExpression;
8006
- /** @deprecated Use `factory.createAdd` or the factory supplied by your transformation context instead. */
8007
- const createAdd: (left: Expression, right: Expression) => BinaryExpression;
8008
- /** @deprecated Use `factory.createSubtract` or the factory supplied by your transformation context instead. */
8009
- const createSubtract: (left: Expression, right: Expression) => BinaryExpression;
8010
- /** @deprecated Use `factory.createLogicalAnd` or the factory supplied by your transformation context instead. */
8011
- const createLogicalAnd: (left: Expression, right: Expression) => BinaryExpression;
8012
- /** @deprecated Use `factory.createLogicalOr` or the factory supplied by your transformation context instead. */
8013
- const createLogicalOr: (left: Expression, right: Expression) => BinaryExpression;
8014
- /** @deprecated Use `factory.createPostfixIncrement` or the factory supplied by your transformation context instead. */
8015
- const createPostfixIncrement: (operand: Expression) => PostfixUnaryExpression;
8016
- /** @deprecated Use `factory.createLogicalNot` or the factory supplied by your transformation context instead. */
8017
- const createLogicalNot: (operand: Expression) => PrefixUnaryExpression;
8018
- /** @deprecated Use an appropriate `factory` method instead. */
8019
- const createNode: (kind: SyntaxKind, pos?: any, end?: any) => Node;
8020
- /**
8021
- * Creates a shallow, memberwise clone of a node ~for mutation~ with its `pos`, `end`, and `parent` set.
8022
- *
8023
- * NOTE: It is unsafe to change any properties of a `Node` that relate to its AST children, as those changes won't be
8024
- * captured with respect to transformations.
8025
- *
8026
- * @deprecated Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`.
8027
- */
8028
- const getMutableClone: <T extends Node>(node: T) => T;
8029
- /** @deprecated Use `isTypeAssertionExpression` instead. */
8030
- const isTypeAssertion: (node: Node) => node is TypeAssertion;
8031
- /**
8032
- * @deprecated Use `isMemberName` instead.
8033
- */
8034
- const isIdentifierOrPrivateIdentifier: (node: Node) => node is MemberName;
8035
7123
  }
8036
7124
  export = ts;