@schematics/angular 14.2.0-rc.0 → 14.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/third_party/github.com/Microsoft/TypeScript/BUILD.bazel +4 -4
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +523 -119
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +8932 -4751
- package/utility/latest-versions/package.json +1 -1
- package/utility/latest-versions.js +1 -1
|
@@ -14,7 +14,7 @@ and limitations under the License.
|
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
16
|
declare namespace ts {
|
|
17
|
-
const versionMajorMinor = "4.
|
|
17
|
+
const versionMajorMinor = "4.8";
|
|
18
18
|
/** The version of the TypeScript compiler release */
|
|
19
19
|
const version: string;
|
|
20
20
|
/**
|
|
@@ -425,6 +425,7 @@ declare namespace ts {
|
|
|
425
425
|
JSDocFunctionType = 317,
|
|
426
426
|
JSDocVariadicType = 318,
|
|
427
427
|
JSDocNamepathType = 319,
|
|
428
|
+
JSDoc = 320,
|
|
428
429
|
/** @deprecated Use SyntaxKind.JSDoc */
|
|
429
430
|
JSDocComment = 320,
|
|
430
431
|
JSDocText = 321,
|
|
@@ -493,7 +494,6 @@ declare namespace ts {
|
|
|
493
494
|
LastJSDocNode = 347,
|
|
494
495
|
FirstJSDocTagNode = 327,
|
|
495
496
|
LastJSDocTagNode = 347,
|
|
496
|
-
JSDoc = 320
|
|
497
497
|
}
|
|
498
498
|
export type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
499
499
|
export type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
@@ -554,13 +554,15 @@ declare namespace ts {
|
|
|
554
554
|
Override = 16384,
|
|
555
555
|
In = 32768,
|
|
556
556
|
Out = 65536,
|
|
557
|
+
Decorator = 131072,
|
|
557
558
|
HasComputedFlags = 536870912,
|
|
558
559
|
AccessibilityModifier = 28,
|
|
559
560
|
ParameterPropertyModifier = 16476,
|
|
560
561
|
NonPublicAccessibilityModifier = 24,
|
|
561
562
|
TypeScriptModifier = 116958,
|
|
562
563
|
ExportDefault = 513,
|
|
563
|
-
All =
|
|
564
|
+
All = 257023,
|
|
565
|
+
Modifier = 125951
|
|
564
566
|
}
|
|
565
567
|
export enum JsxFlags {
|
|
566
568
|
None = 0,
|
|
@@ -573,8 +575,6 @@ declare namespace ts {
|
|
|
573
575
|
export interface Node extends ReadonlyTextRange {
|
|
574
576
|
readonly kind: SyntaxKind;
|
|
575
577
|
readonly flags: NodeFlags;
|
|
576
|
-
readonly decorators?: NodeArray<Decorator>;
|
|
577
|
-
readonly modifiers?: ModifiersArray;
|
|
578
578
|
readonly parent: Node;
|
|
579
579
|
}
|
|
580
580
|
export interface JSDocContainer {
|
|
@@ -583,7 +583,9 @@ declare namespace ts {
|
|
|
583
583
|
export type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType;
|
|
584
584
|
export type HasTypeArguments = CallExpression | NewExpression | TaggedTemplateExpression | JsxOpeningElement | JsxSelfClosingElement;
|
|
585
585
|
export type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute;
|
|
586
|
-
export type HasExpressionInitializer = VariableDeclaration | ParameterDeclaration | BindingElement |
|
|
586
|
+
export type HasExpressionInitializer = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyDeclaration | PropertyAssignment | EnumMember;
|
|
587
|
+
export type HasDecorators = ParameterDeclaration | PropertyDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ClassExpression | ClassDeclaration;
|
|
588
|
+
export type HasModifiers = TypeParameterDeclaration | ParameterDeclaration | ConstructorTypeNode | PropertySignature | PropertyDeclaration | MethodSignature | MethodDeclaration | ConstructorDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | IndexSignatureDeclaration | FunctionExpression | ArrowFunction | ClassExpression | VariableStatement | FunctionDeclaration | ClassDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | ExportAssignment | ExportDeclaration;
|
|
587
589
|
export interface NodeArray<T extends Node> extends ReadonlyArray<T>, ReadonlyTextRange {
|
|
588
590
|
readonly hasTrailingComma: boolean;
|
|
589
591
|
}
|
|
@@ -632,6 +634,7 @@ declare namespace ts {
|
|
|
632
634
|
/** @deprecated Use `ReadonlyKeyword` instead. */
|
|
633
635
|
export type ReadonlyToken = ReadonlyKeyword;
|
|
634
636
|
export type Modifier = AbstractKeyword | AsyncKeyword | ConstKeyword | DeclareKeyword | DefaultKeyword | ExportKeyword | InKeyword | PrivateKeyword | ProtectedKeyword | PublicKeyword | OutKeyword | OverrideKeyword | ReadonlyKeyword | StaticKeyword;
|
|
637
|
+
export type ModifierLike = Modifier | Decorator;
|
|
635
638
|
export type AccessibilityModifier = PublicKeyword | PrivateKeyword | ProtectedKeyword;
|
|
636
639
|
export type ParameterPropertyModifier = AccessibilityModifier | ReadonlyKeyword;
|
|
637
640
|
export type ClassMemberModifier = AccessibilityModifier | ReadonlyKeyword | StaticKeyword;
|
|
@@ -691,6 +694,7 @@ declare namespace ts {
|
|
|
691
694
|
export interface TypeParameterDeclaration extends NamedDeclaration {
|
|
692
695
|
readonly kind: SyntaxKind.TypeParameter;
|
|
693
696
|
readonly parent: DeclarationWithTypeParameterChildren | InferTypeNode;
|
|
697
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
694
698
|
readonly name: Identifier;
|
|
695
699
|
/** Note: Consider calling `getEffectiveConstraintOfTypeParameter` */
|
|
696
700
|
readonly constraint?: TypeNode;
|
|
@@ -700,9 +704,9 @@ declare namespace ts {
|
|
|
700
704
|
export interface SignatureDeclarationBase extends NamedDeclaration, JSDocContainer {
|
|
701
705
|
readonly kind: SignatureDeclaration["kind"];
|
|
702
706
|
readonly name?: PropertyName;
|
|
703
|
-
readonly typeParameters?: NodeArray<TypeParameterDeclaration
|
|
707
|
+
readonly typeParameters?: NodeArray<TypeParameterDeclaration> | undefined;
|
|
704
708
|
readonly parameters: NodeArray<ParameterDeclaration>;
|
|
705
|
-
readonly type?: TypeNode;
|
|
709
|
+
readonly type?: TypeNode | undefined;
|
|
706
710
|
}
|
|
707
711
|
export type SignatureDeclaration = CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | AccessorDeclaration | FunctionExpression | ArrowFunction;
|
|
708
712
|
export interface CallSignatureDeclaration extends SignatureDeclarationBase, TypeElement {
|
|
@@ -728,6 +732,7 @@ declare namespace ts {
|
|
|
728
732
|
export interface ParameterDeclaration extends NamedDeclaration, JSDocContainer {
|
|
729
733
|
readonly kind: SyntaxKind.Parameter;
|
|
730
734
|
readonly parent: SignatureDeclaration;
|
|
735
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
731
736
|
readonly dotDotDotToken?: DotDotDotToken;
|
|
732
737
|
readonly name: BindingName;
|
|
733
738
|
readonly questionToken?: QuestionToken;
|
|
@@ -744,14 +749,15 @@ declare namespace ts {
|
|
|
744
749
|
}
|
|
745
750
|
export interface PropertySignature extends TypeElement, JSDocContainer {
|
|
746
751
|
readonly kind: SyntaxKind.PropertySignature;
|
|
752
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
747
753
|
readonly name: PropertyName;
|
|
748
754
|
readonly questionToken?: QuestionToken;
|
|
749
755
|
readonly type?: TypeNode;
|
|
750
|
-
initializer?: Expression;
|
|
751
756
|
}
|
|
752
757
|
export interface PropertyDeclaration extends ClassElement, JSDocContainer {
|
|
753
758
|
readonly kind: SyntaxKind.PropertyDeclaration;
|
|
754
759
|
readonly parent: ClassLikeDeclaration;
|
|
760
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
755
761
|
readonly name: PropertyName;
|
|
756
762
|
readonly questionToken?: QuestionToken;
|
|
757
763
|
readonly exclamationToken?: ExclamationToken;
|
|
@@ -768,16 +774,12 @@ declare namespace ts {
|
|
|
768
774
|
readonly kind: SyntaxKind.PropertyAssignment;
|
|
769
775
|
readonly parent: ObjectLiteralExpression;
|
|
770
776
|
readonly name: PropertyName;
|
|
771
|
-
readonly questionToken?: QuestionToken;
|
|
772
|
-
readonly exclamationToken?: ExclamationToken;
|
|
773
777
|
readonly initializer: Expression;
|
|
774
778
|
}
|
|
775
779
|
export interface ShorthandPropertyAssignment extends ObjectLiteralElement, JSDocContainer {
|
|
776
780
|
readonly kind: SyntaxKind.ShorthandPropertyAssignment;
|
|
777
781
|
readonly parent: ObjectLiteralExpression;
|
|
778
782
|
readonly name: Identifier;
|
|
779
|
-
readonly questionToken?: QuestionToken;
|
|
780
|
-
readonly exclamationToken?: ExclamationToken;
|
|
781
783
|
readonly equalsToken?: EqualsToken;
|
|
782
784
|
readonly objectAssignmentInitializer?: Expression;
|
|
783
785
|
}
|
|
@@ -812,34 +814,38 @@ declare namespace ts {
|
|
|
812
814
|
*/
|
|
813
815
|
export interface FunctionLikeDeclarationBase extends SignatureDeclarationBase {
|
|
814
816
|
_functionLikeDeclarationBrand: any;
|
|
815
|
-
readonly asteriskToken?: AsteriskToken;
|
|
816
|
-
readonly questionToken?: QuestionToken;
|
|
817
|
-
readonly exclamationToken?: ExclamationToken;
|
|
818
|
-
readonly body?: Block | Expression;
|
|
817
|
+
readonly asteriskToken?: AsteriskToken | undefined;
|
|
818
|
+
readonly questionToken?: QuestionToken | undefined;
|
|
819
|
+
readonly exclamationToken?: ExclamationToken | undefined;
|
|
820
|
+
readonly body?: Block | Expression | undefined;
|
|
819
821
|
}
|
|
820
822
|
export type FunctionLikeDeclaration = FunctionDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ConstructorDeclaration | FunctionExpression | ArrowFunction;
|
|
821
823
|
/** @deprecated Use SignatureDeclaration */
|
|
822
824
|
export type FunctionLike = SignatureDeclaration;
|
|
823
825
|
export interface FunctionDeclaration extends FunctionLikeDeclarationBase, DeclarationStatement {
|
|
824
826
|
readonly kind: SyntaxKind.FunctionDeclaration;
|
|
827
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
825
828
|
readonly name?: Identifier;
|
|
826
829
|
readonly body?: FunctionBody;
|
|
827
830
|
}
|
|
828
831
|
export interface MethodSignature extends SignatureDeclarationBase, TypeElement {
|
|
829
832
|
readonly kind: SyntaxKind.MethodSignature;
|
|
830
833
|
readonly parent: ObjectTypeDeclaration;
|
|
834
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
831
835
|
readonly name: PropertyName;
|
|
832
836
|
}
|
|
833
837
|
export interface MethodDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer {
|
|
834
838
|
readonly kind: SyntaxKind.MethodDeclaration;
|
|
835
839
|
readonly parent: ClassLikeDeclaration | ObjectLiteralExpression;
|
|
840
|
+
readonly modifiers?: NodeArray<ModifierLike> | undefined;
|
|
836
841
|
readonly name: PropertyName;
|
|
837
|
-
readonly body?: FunctionBody;
|
|
842
|
+
readonly body?: FunctionBody | undefined;
|
|
838
843
|
}
|
|
839
844
|
export interface ConstructorDeclaration extends FunctionLikeDeclarationBase, ClassElement, JSDocContainer {
|
|
840
845
|
readonly kind: SyntaxKind.Constructor;
|
|
841
846
|
readonly parent: ClassLikeDeclaration;
|
|
842
|
-
readonly
|
|
847
|
+
readonly modifiers?: NodeArray<Modifier> | undefined;
|
|
848
|
+
readonly body?: FunctionBody | undefined;
|
|
843
849
|
}
|
|
844
850
|
/** For when we encounter a semicolon in a class declaration. ES6 allows these as class elements. */
|
|
845
851
|
export interface SemicolonClassElement extends ClassElement {
|
|
@@ -849,12 +855,14 @@ declare namespace ts {
|
|
|
849
855
|
export interface GetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer {
|
|
850
856
|
readonly kind: SyntaxKind.GetAccessor;
|
|
851
857
|
readonly parent: ClassLikeDeclaration | ObjectLiteralExpression | TypeLiteralNode | InterfaceDeclaration;
|
|
858
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
852
859
|
readonly name: PropertyName;
|
|
853
860
|
readonly body?: FunctionBody;
|
|
854
861
|
}
|
|
855
862
|
export interface SetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer {
|
|
856
863
|
readonly kind: SyntaxKind.SetAccessor;
|
|
857
864
|
readonly parent: ClassLikeDeclaration | ObjectLiteralExpression | TypeLiteralNode | InterfaceDeclaration;
|
|
865
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
858
866
|
readonly name: PropertyName;
|
|
859
867
|
readonly body?: FunctionBody;
|
|
860
868
|
}
|
|
@@ -862,6 +870,7 @@ declare namespace ts {
|
|
|
862
870
|
export interface IndexSignatureDeclaration extends SignatureDeclarationBase, ClassElement, TypeElement {
|
|
863
871
|
readonly kind: SyntaxKind.IndexSignature;
|
|
864
872
|
readonly parent: ObjectTypeDeclaration;
|
|
873
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
865
874
|
readonly type: TypeNode;
|
|
866
875
|
}
|
|
867
876
|
export interface ClassStaticBlockDeclaration extends ClassElement, JSDocContainer {
|
|
@@ -901,6 +910,7 @@ declare namespace ts {
|
|
|
901
910
|
}
|
|
902
911
|
export interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase {
|
|
903
912
|
readonly kind: SyntaxKind.ConstructorType;
|
|
913
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
904
914
|
}
|
|
905
915
|
export interface NodeWithTypeArguments extends TypeNode {
|
|
906
916
|
readonly typeArguments?: NodeArray<TypeNode>;
|
|
@@ -1157,11 +1167,13 @@ declare namespace ts {
|
|
|
1157
1167
|
export type ConciseBody = FunctionBody | Expression;
|
|
1158
1168
|
export interface FunctionExpression extends PrimaryExpression, FunctionLikeDeclarationBase, JSDocContainer {
|
|
1159
1169
|
readonly kind: SyntaxKind.FunctionExpression;
|
|
1170
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1160
1171
|
readonly name?: Identifier;
|
|
1161
1172
|
readonly body: FunctionBody;
|
|
1162
1173
|
}
|
|
1163
1174
|
export interface ArrowFunction extends Expression, FunctionLikeDeclarationBase, JSDocContainer {
|
|
1164
1175
|
readonly kind: SyntaxKind.ArrowFunction;
|
|
1176
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1165
1177
|
readonly equalsGreaterThanToken: EqualsGreaterThanToken;
|
|
1166
1178
|
readonly body: ConciseBody;
|
|
1167
1179
|
readonly name: never;
|
|
@@ -1388,8 +1400,9 @@ declare namespace ts {
|
|
|
1388
1400
|
readonly kind: SyntaxKind.JsxAttribute;
|
|
1389
1401
|
readonly parent: JsxAttributes;
|
|
1390
1402
|
readonly name: Identifier;
|
|
1391
|
-
readonly initializer?:
|
|
1403
|
+
readonly initializer?: JsxAttributeValue;
|
|
1392
1404
|
}
|
|
1405
|
+
export type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
|
|
1393
1406
|
export interface JsxSpreadAttribute extends ObjectLiteralElement {
|
|
1394
1407
|
readonly kind: SyntaxKind.JsxSpreadAttribute;
|
|
1395
1408
|
readonly parent: JsxAttributes;
|
|
@@ -1442,6 +1455,7 @@ declare namespace ts {
|
|
|
1442
1455
|
}
|
|
1443
1456
|
export interface VariableStatement extends Statement {
|
|
1444
1457
|
readonly kind: SyntaxKind.VariableStatement;
|
|
1458
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1445
1459
|
readonly declarationList: VariableDeclarationList;
|
|
1446
1460
|
}
|
|
1447
1461
|
export interface ExpressionStatement extends Statement {
|
|
@@ -1558,11 +1572,13 @@ declare namespace ts {
|
|
|
1558
1572
|
}
|
|
1559
1573
|
export interface ClassDeclaration extends ClassLikeDeclarationBase, DeclarationStatement {
|
|
1560
1574
|
readonly kind: SyntaxKind.ClassDeclaration;
|
|
1575
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1561
1576
|
/** May be undefined in `export default class { ... }`. */
|
|
1562
1577
|
readonly name?: Identifier;
|
|
1563
1578
|
}
|
|
1564
1579
|
export interface ClassExpression extends ClassLikeDeclarationBase, PrimaryExpression {
|
|
1565
1580
|
readonly kind: SyntaxKind.ClassExpression;
|
|
1581
|
+
readonly modifiers?: NodeArray<ModifierLike>;
|
|
1566
1582
|
}
|
|
1567
1583
|
export type ClassLikeDeclaration = ClassDeclaration | ClassExpression;
|
|
1568
1584
|
export interface ClassElement extends NamedDeclaration {
|
|
@@ -1572,10 +1588,11 @@ declare namespace ts {
|
|
|
1572
1588
|
export interface TypeElement extends NamedDeclaration {
|
|
1573
1589
|
_typeElementBrand: any;
|
|
1574
1590
|
readonly name?: PropertyName;
|
|
1575
|
-
readonly questionToken?: QuestionToken;
|
|
1591
|
+
readonly questionToken?: QuestionToken | undefined;
|
|
1576
1592
|
}
|
|
1577
1593
|
export interface InterfaceDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1578
1594
|
readonly kind: SyntaxKind.InterfaceDeclaration;
|
|
1595
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1579
1596
|
readonly name: Identifier;
|
|
1580
1597
|
readonly typeParameters?: NodeArray<TypeParameterDeclaration>;
|
|
1581
1598
|
readonly heritageClauses?: NodeArray<HeritageClause>;
|
|
@@ -1589,6 +1606,7 @@ declare namespace ts {
|
|
|
1589
1606
|
}
|
|
1590
1607
|
export interface TypeAliasDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1591
1608
|
readonly kind: SyntaxKind.TypeAliasDeclaration;
|
|
1609
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1592
1610
|
readonly name: Identifier;
|
|
1593
1611
|
readonly typeParameters?: NodeArray<TypeParameterDeclaration>;
|
|
1594
1612
|
readonly type: TypeNode;
|
|
@@ -1601,6 +1619,7 @@ declare namespace ts {
|
|
|
1601
1619
|
}
|
|
1602
1620
|
export interface EnumDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1603
1621
|
readonly kind: SyntaxKind.EnumDeclaration;
|
|
1622
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1604
1623
|
readonly name: Identifier;
|
|
1605
1624
|
readonly members: NodeArray<EnumMember>;
|
|
1606
1625
|
}
|
|
@@ -1609,6 +1628,7 @@ declare namespace ts {
|
|
|
1609
1628
|
export interface ModuleDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1610
1629
|
readonly kind: SyntaxKind.ModuleDeclaration;
|
|
1611
1630
|
readonly parent: ModuleBody | SourceFile;
|
|
1631
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1612
1632
|
readonly name: ModuleName;
|
|
1613
1633
|
readonly body?: ModuleBody | JSDocNamespaceDeclaration;
|
|
1614
1634
|
}
|
|
@@ -1636,6 +1656,7 @@ declare namespace ts {
|
|
|
1636
1656
|
export interface ImportEqualsDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1637
1657
|
readonly kind: SyntaxKind.ImportEqualsDeclaration;
|
|
1638
1658
|
readonly parent: SourceFile | ModuleBlock;
|
|
1659
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1639
1660
|
readonly name: Identifier;
|
|
1640
1661
|
readonly isTypeOnly: boolean;
|
|
1641
1662
|
readonly moduleReference: ModuleReference;
|
|
@@ -1648,6 +1669,7 @@ declare namespace ts {
|
|
|
1648
1669
|
export interface ImportDeclaration extends Statement {
|
|
1649
1670
|
readonly kind: SyntaxKind.ImportDeclaration;
|
|
1650
1671
|
readonly parent: SourceFile | ModuleBlock;
|
|
1672
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1651
1673
|
readonly importClause?: ImportClause;
|
|
1652
1674
|
/** If this is not a StringLiteral it will be a grammar error. */
|
|
1653
1675
|
readonly moduleSpecifier: Expression;
|
|
@@ -1692,6 +1714,7 @@ declare namespace ts {
|
|
|
1692
1714
|
export interface ExportDeclaration extends DeclarationStatement, JSDocContainer {
|
|
1693
1715
|
readonly kind: SyntaxKind.ExportDeclaration;
|
|
1694
1716
|
readonly parent: SourceFile | ModuleBlock;
|
|
1717
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1695
1718
|
readonly isTypeOnly: boolean;
|
|
1696
1719
|
/** Will not be assigned in the case of `export * from "foo";` */
|
|
1697
1720
|
readonly exportClause?: NamedExportBindings;
|
|
@@ -1759,6 +1782,7 @@ declare namespace ts {
|
|
|
1759
1782
|
export interface ExportAssignment extends DeclarationStatement, JSDocContainer {
|
|
1760
1783
|
readonly kind: SyntaxKind.ExportAssignment;
|
|
1761
1784
|
readonly parent: SourceFile;
|
|
1785
|
+
readonly modifiers?: NodeArray<Modifier>;
|
|
1762
1786
|
readonly isExportEquals?: boolean;
|
|
1763
1787
|
readonly expression: Expression;
|
|
1764
1788
|
}
|
|
@@ -2072,6 +2096,12 @@ declare namespace ts {
|
|
|
2072
2096
|
* It is _public_ so that (pre)transformers can set this field,
|
|
2073
2097
|
* since it switches the builtin `node` module transform. Generally speaking, if unset,
|
|
2074
2098
|
* the field is treated as though it is `ModuleKind.CommonJS`.
|
|
2099
|
+
*
|
|
2100
|
+
* Note that this field is only set by the module resolution process when
|
|
2101
|
+
* `moduleResolution` is `Node16` or `NodeNext`, which is implied by the `module` setting
|
|
2102
|
+
* of `Node16` or `NodeNext`, respectively, but may be overriden (eg, by a `moduleResolution`
|
|
2103
|
+
* of `node`). If so, this field will be unset and source files will be considered to be
|
|
2104
|
+
* CommonJS-output-format by the node module transformer and type checker, regardless of extension or context.
|
|
2075
2105
|
*/
|
|
2076
2106
|
impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS;
|
|
2077
2107
|
}
|
|
@@ -2396,6 +2426,7 @@ declare namespace ts {
|
|
|
2396
2426
|
UseAliasDefinedOutsideCurrentScope = 16384,
|
|
2397
2427
|
UseSingleQuotesForStringLiteralType = 268435456,
|
|
2398
2428
|
NoTypeReduction = 536870912,
|
|
2429
|
+
OmitThisParameter = 33554432,
|
|
2399
2430
|
AllowThisInObjectLiteral = 32768,
|
|
2400
2431
|
AllowQualifiedNameInPlaceOfIdentifier = 65536,
|
|
2401
2432
|
/** @deprecated AllowQualifedNameInPlaceOfIdentifier. Use AllowQualifiedNameInPlaceOfIdentifier instead. */
|
|
@@ -2426,6 +2457,7 @@ declare namespace ts {
|
|
|
2426
2457
|
UseAliasDefinedOutsideCurrentScope = 16384,
|
|
2427
2458
|
UseSingleQuotesForStringLiteralType = 268435456,
|
|
2428
2459
|
NoTypeReduction = 536870912,
|
|
2460
|
+
OmitThisParameter = 33554432,
|
|
2429
2461
|
AllowUniqueESSymbolType = 1048576,
|
|
2430
2462
|
AddUndefined = 131072,
|
|
2431
2463
|
WriteArrowStyleSignature = 262144,
|
|
@@ -2434,7 +2466,7 @@ declare namespace ts {
|
|
|
2434
2466
|
InFirstTypeArgument = 4194304,
|
|
2435
2467
|
InTypeAlias = 8388608,
|
|
2436
2468
|
/** @deprecated */ WriteOwnNameForAnyLike = 0,
|
|
2437
|
-
NodeBuilderFlagsMask =
|
|
2469
|
+
NodeBuilderFlagsMask = 848330091
|
|
2438
2470
|
}
|
|
2439
2471
|
export enum SymbolFormatFlags {
|
|
2440
2472
|
None = 0,
|
|
@@ -3402,39 +3434,35 @@ declare namespace ts {
|
|
|
3402
3434
|
createComputedPropertyName(expression: Expression): ComputedPropertyName;
|
|
3403
3435
|
updateComputedPropertyName(node: ComputedPropertyName, expression: Expression): ComputedPropertyName;
|
|
3404
3436
|
createTypeParameterDeclaration(modifiers: readonly Modifier[] | undefined, name: string | Identifier, constraint?: TypeNode, defaultType?: TypeNode): TypeParameterDeclaration;
|
|
3405
|
-
/** @deprecated */
|
|
3406
|
-
createTypeParameterDeclaration(name: string | Identifier, constraint?: TypeNode, defaultType?: TypeNode): TypeParameterDeclaration;
|
|
3407
3437
|
updateTypeParameterDeclaration(node: TypeParameterDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration;
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
createParameterDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration;
|
|
3411
|
-
updateParameterDeclaration(node: ParameterDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration;
|
|
3438
|
+
createParameterDeclaration(modifiers: readonly ModifierLike[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration;
|
|
3439
|
+
updateParameterDeclaration(node: ParameterDeclaration, modifiers: readonly ModifierLike[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration;
|
|
3412
3440
|
createDecorator(expression: Expression): Decorator;
|
|
3413
3441
|
updateDecorator(node: Decorator, expression: Expression): Decorator;
|
|
3414
3442
|
createPropertySignature(modifiers: readonly Modifier[] | undefined, name: PropertyName | string, questionToken: QuestionToken | undefined, type: TypeNode | undefined): PropertySignature;
|
|
3415
3443
|
updatePropertySignature(node: PropertySignature, modifiers: readonly Modifier[] | undefined, name: PropertyName, questionToken: QuestionToken | undefined, type: TypeNode | undefined): PropertySignature;
|
|
3416
|
-
createPropertyDeclaration(
|
|
3417
|
-
updatePropertyDeclaration(node: PropertyDeclaration,
|
|
3444
|
+
createPropertyDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
3445
|
+
updatePropertyDeclaration(node: PropertyDeclaration, modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
3418
3446
|
createMethodSignature(modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined): MethodSignature;
|
|
3419
3447
|
updateMethodSignature(node: MethodSignature, modifiers: readonly Modifier[] | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): MethodSignature;
|
|
3420
|
-
createMethodDeclaration(
|
|
3421
|
-
updateMethodDeclaration(node: MethodDeclaration,
|
|
3422
|
-
createConstructorDeclaration(
|
|
3423
|
-
updateConstructorDeclaration(node: ConstructorDeclaration,
|
|
3424
|
-
createGetAccessorDeclaration(
|
|
3425
|
-
updateGetAccessorDeclaration(node: GetAccessorDeclaration,
|
|
3426
|
-
createSetAccessorDeclaration(
|
|
3427
|
-
updateSetAccessorDeclaration(node: SetAccessorDeclaration,
|
|
3448
|
+
createMethodDeclaration(modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
|
|
3449
|
+
updateMethodDeclaration(node: MethodDeclaration, modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
|
|
3450
|
+
createConstructorDeclaration(modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
3451
|
+
updateConstructorDeclaration(node: ConstructorDeclaration, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
3452
|
+
createGetAccessorDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
3453
|
+
updateGetAccessorDeclaration(node: GetAccessorDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
3454
|
+
createSetAccessorDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
3455
|
+
updateSetAccessorDeclaration(node: SetAccessorDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
3428
3456
|
createCallSignature(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined): CallSignatureDeclaration;
|
|
3429
3457
|
updateCallSignature(node: CallSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): CallSignatureDeclaration;
|
|
3430
3458
|
createConstructSignature(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined): ConstructSignatureDeclaration;
|
|
3431
3459
|
updateConstructSignature(node: ConstructSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined): ConstructSignatureDeclaration;
|
|
3432
|
-
createIndexSignature(
|
|
3433
|
-
updateIndexSignature(node: IndexSignatureDeclaration,
|
|
3460
|
+
createIndexSignature(modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
3461
|
+
updateIndexSignature(node: IndexSignatureDeclaration, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
3434
3462
|
createTemplateLiteralTypeSpan(type: TypeNode, literal: TemplateMiddle | TemplateTail): TemplateLiteralTypeSpan;
|
|
3435
3463
|
updateTemplateLiteralTypeSpan(node: TemplateLiteralTypeSpan, type: TypeNode, literal: TemplateMiddle | TemplateTail): TemplateLiteralTypeSpan;
|
|
3436
|
-
createClassStaticBlockDeclaration(
|
|
3437
|
-
updateClassStaticBlockDeclaration(node: ClassStaticBlockDeclaration,
|
|
3464
|
+
createClassStaticBlockDeclaration(body: Block): ClassStaticBlockDeclaration;
|
|
3465
|
+
updateClassStaticBlockDeclaration(node: ClassStaticBlockDeclaration, body: Block): ClassStaticBlockDeclaration;
|
|
3438
3466
|
createKeywordTypeNode<TKind extends KeywordTypeSyntaxKind>(kind: TKind): KeywordTypeNode<TKind>;
|
|
3439
3467
|
createTypePredicateNode(assertsModifier: AssertsKeyword | undefined, parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined): TypePredicateNode;
|
|
3440
3468
|
updateTypePredicateNode(node: TypePredicateNode, assertsModifier: AssertsKeyword | undefined, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined): TypePredicateNode;
|
|
@@ -3443,11 +3471,7 @@ declare namespace ts {
|
|
|
3443
3471
|
createFunctionTypeNode(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): FunctionTypeNode;
|
|
3444
3472
|
updateFunctionTypeNode(node: FunctionTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode): FunctionTypeNode;
|
|
3445
3473
|
createConstructorTypeNode(modifiers: readonly Modifier[] | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): ConstructorTypeNode;
|
|
3446
|
-
/** @deprecated */
|
|
3447
|
-
createConstructorTypeNode(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): ConstructorTypeNode;
|
|
3448
3474
|
updateConstructorTypeNode(node: ConstructorTypeNode, modifiers: readonly Modifier[] | undefined, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode): ConstructorTypeNode;
|
|
3449
|
-
/** @deprecated */
|
|
3450
|
-
updateConstructorTypeNode(node: ConstructorTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode): ConstructorTypeNode;
|
|
3451
3475
|
createTypeQueryNode(exprName: EntityName, typeArguments?: readonly TypeNode[]): TypeQueryNode;
|
|
3452
3476
|
updateTypeQueryNode(node: TypeQueryNode, exprName: EntityName, typeArguments?: readonly TypeNode[]): TypeQueryNode;
|
|
3453
3477
|
createTypeLiteralNode(members: readonly TypeElement[] | undefined): TypeLiteralNode;
|
|
@@ -3470,9 +3494,7 @@ declare namespace ts {
|
|
|
3470
3494
|
updateConditionalTypeNode(node: ConditionalTypeNode, checkType: TypeNode, extendsType: TypeNode, trueType: TypeNode, falseType: TypeNode): ConditionalTypeNode;
|
|
3471
3495
|
createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
|
|
3472
3496
|
updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
|
|
3473
|
-
createImportTypeNode(argument: TypeNode, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
|
|
3474
3497
|
createImportTypeNode(argument: TypeNode, assertions?: ImportTypeAssertionContainer, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
|
|
3475
|
-
updateImportTypeNode(node: ImportTypeNode, argument: TypeNode, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean): ImportTypeNode;
|
|
3476
3498
|
updateImportTypeNode(node: ImportTypeNode, argument: TypeNode, assertions: ImportTypeAssertionContainer | undefined, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean): ImportTypeNode;
|
|
3477
3499
|
createParenthesizedType(type: TypeNode): ParenthesizedTypeNode;
|
|
3478
3500
|
updateParenthesizedType(node: ParenthesizedTypeNode, type: TypeNode): ParenthesizedTypeNode;
|
|
@@ -3552,8 +3574,8 @@ declare namespace ts {
|
|
|
3552
3574
|
updateYieldExpression(node: YieldExpression, asteriskToken: AsteriskToken | undefined, expression: Expression | undefined): YieldExpression;
|
|
3553
3575
|
createSpreadElement(expression: Expression): SpreadElement;
|
|
3554
3576
|
updateSpreadElement(node: SpreadElement, expression: Expression): SpreadElement;
|
|
3555
|
-
createClassExpression(
|
|
3556
|
-
updateClassExpression(node: ClassExpression,
|
|
3577
|
+
createClassExpression(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassExpression;
|
|
3578
|
+
updateClassExpression(node: ClassExpression, modifiers: readonly ModifierLike[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassExpression;
|
|
3557
3579
|
createOmittedExpression(): OmittedExpression;
|
|
3558
3580
|
createExpressionWithTypeArguments(expression: Expression, typeArguments: readonly TypeNode[] | undefined): ExpressionWithTypeArguments;
|
|
3559
3581
|
updateExpressionWithTypeArguments(node: ExpressionWithTypeArguments, expression: Expression, typeArguments: readonly TypeNode[] | undefined): ExpressionWithTypeArguments;
|
|
@@ -3608,28 +3630,28 @@ declare namespace ts {
|
|
|
3608
3630
|
updateVariableDeclaration(node: VariableDeclaration, name: BindingName, exclamationToken: ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): VariableDeclaration;
|
|
3609
3631
|
createVariableDeclarationList(declarations: readonly VariableDeclaration[], flags?: NodeFlags): VariableDeclarationList;
|
|
3610
3632
|
updateVariableDeclarationList(node: VariableDeclarationList, declarations: readonly VariableDeclaration[]): VariableDeclarationList;
|
|
3611
|
-
createFunctionDeclaration(
|
|
3612
|
-
updateFunctionDeclaration(node: FunctionDeclaration,
|
|
3613
|
-
createClassDeclaration(
|
|
3614
|
-
updateClassDeclaration(node: ClassDeclaration,
|
|
3615
|
-
createInterfaceDeclaration(
|
|
3616
|
-
updateInterfaceDeclaration(node: InterfaceDeclaration,
|
|
3617
|
-
createTypeAliasDeclaration(
|
|
3618
|
-
updateTypeAliasDeclaration(node: TypeAliasDeclaration,
|
|
3619
|
-
createEnumDeclaration(
|
|
3620
|
-
updateEnumDeclaration(node: EnumDeclaration,
|
|
3621
|
-
createModuleDeclaration(
|
|
3622
|
-
updateModuleDeclaration(node: ModuleDeclaration,
|
|
3633
|
+
createFunctionDeclaration(modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
|
|
3634
|
+
updateFunctionDeclaration(node: FunctionDeclaration, modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
|
|
3635
|
+
createClassDeclaration(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
3636
|
+
updateClassDeclaration(node: ClassDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
3637
|
+
createInterfaceDeclaration(modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
3638
|
+
updateInterfaceDeclaration(node: InterfaceDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
3639
|
+
createTypeAliasDeclaration(modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
3640
|
+
updateTypeAliasDeclaration(node: TypeAliasDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
3641
|
+
createEnumDeclaration(modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
3642
|
+
updateEnumDeclaration(node: EnumDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
3643
|
+
createModuleDeclaration(modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags): ModuleDeclaration;
|
|
3644
|
+
updateModuleDeclaration(node: ModuleDeclaration, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
3623
3645
|
createModuleBlock(statements: readonly Statement[]): ModuleBlock;
|
|
3624
3646
|
updateModuleBlock(node: ModuleBlock, statements: readonly Statement[]): ModuleBlock;
|
|
3625
3647
|
createCaseBlock(clauses: readonly CaseOrDefaultClause[]): CaseBlock;
|
|
3626
3648
|
updateCaseBlock(node: CaseBlock, clauses: readonly CaseOrDefaultClause[]): CaseBlock;
|
|
3627
3649
|
createNamespaceExportDeclaration(name: string | Identifier): NamespaceExportDeclaration;
|
|
3628
3650
|
updateNamespaceExportDeclaration(node: NamespaceExportDeclaration, name: Identifier): NamespaceExportDeclaration;
|
|
3629
|
-
createImportEqualsDeclaration(
|
|
3630
|
-
updateImportEqualsDeclaration(node: ImportEqualsDeclaration,
|
|
3631
|
-
createImportDeclaration(
|
|
3632
|
-
updateImportDeclaration(node: ImportDeclaration,
|
|
3651
|
+
createImportEqualsDeclaration(modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
3652
|
+
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
3653
|
+
createImportDeclaration(modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
|
|
3654
|
+
updateImportDeclaration(node: ImportDeclaration, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
3633
3655
|
createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3634
3656
|
updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3635
3657
|
createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
@@ -3646,10 +3668,10 @@ declare namespace ts {
|
|
|
3646
3668
|
updateNamedImports(node: NamedImports, elements: readonly ImportSpecifier[]): NamedImports;
|
|
3647
3669
|
createImportSpecifier(isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3648
3670
|
updateImportSpecifier(node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3649
|
-
createExportAssignment(
|
|
3650
|
-
updateExportAssignment(node: ExportAssignment,
|
|
3651
|
-
createExportDeclaration(
|
|
3652
|
-
updateExportDeclaration(node: ExportDeclaration,
|
|
3671
|
+
createExportAssignment(modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
3672
|
+
updateExportAssignment(node: ExportAssignment, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
3673
|
+
createExportDeclaration(modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
|
|
3674
|
+
updateExportDeclaration(node: ExportDeclaration, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
|
|
3653
3675
|
createNamedExports(elements: readonly ExportSpecifier[]): NamedExports;
|
|
3654
3676
|
updateNamedExports(node: NamedExports, elements: readonly ExportSpecifier[]): NamedExports;
|
|
3655
3677
|
createExportSpecifier(isTypeOnly: boolean, propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier;
|
|
@@ -3746,8 +3768,8 @@ declare namespace ts {
|
|
|
3746
3768
|
createJsxOpeningFragment(): JsxOpeningFragment;
|
|
3747
3769
|
createJsxJsxClosingFragment(): JsxClosingFragment;
|
|
3748
3770
|
updateJsxFragment(node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment): JsxFragment;
|
|
3749
|
-
createJsxAttribute(name: Identifier, initializer:
|
|
3750
|
-
updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer:
|
|
3771
|
+
createJsxAttribute(name: Identifier, initializer: JsxAttributeValue | undefined): JsxAttribute;
|
|
3772
|
+
updateJsxAttribute(node: JsxAttribute, name: Identifier, initializer: JsxAttributeValue | undefined): JsxAttribute;
|
|
3751
3773
|
createJsxAttributes(properties: readonly JsxAttributeLike[]): JsxAttributes;
|
|
3752
3774
|
updateJsxAttributes(node: JsxAttributes, properties: readonly JsxAttributeLike[]): JsxAttributes;
|
|
3753
3775
|
createJsxSpreadAttribute(expression: Expression): JsxSpreadAttribute;
|
|
@@ -4055,7 +4077,7 @@ declare namespace ts {
|
|
|
4055
4077
|
NoSpaceIfEmpty = 524288,
|
|
4056
4078
|
SingleElement = 1048576,
|
|
4057
4079
|
SpaceAfterList = 2097152,
|
|
4058
|
-
Modifiers =
|
|
4080
|
+
Modifiers = 2359808,
|
|
4059
4081
|
HeritageClauses = 512,
|
|
4060
4082
|
SingleLineTypeLiteralMembers = 768,
|
|
4061
4083
|
MultiLineTypeLiteralMembers = 32897,
|
|
@@ -4119,9 +4141,12 @@ declare namespace ts {
|
|
|
4119
4141
|
readonly includeInlayParameterNameHintsWhenArgumentMatchesName?: boolean;
|
|
4120
4142
|
readonly includeInlayFunctionParameterTypeHints?: boolean;
|
|
4121
4143
|
readonly includeInlayVariableTypeHints?: boolean;
|
|
4144
|
+
readonly includeInlayVariableTypeHintsWhenTypeMatchesName?: boolean;
|
|
4122
4145
|
readonly includeInlayPropertyDeclarationTypeHints?: boolean;
|
|
4123
4146
|
readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
|
|
4124
4147
|
readonly includeInlayEnumMemberValueHints?: boolean;
|
|
4148
|
+
readonly allowRenameOfImportPath?: boolean;
|
|
4149
|
+
readonly autoImportFileExcludePatterns?: string[];
|
|
4125
4150
|
}
|
|
4126
4151
|
/** Represents a bigint literal value without requiring bigint support */
|
|
4127
4152
|
export interface PseudoBigInt {
|
|
@@ -4138,7 +4163,7 @@ declare namespace ts {
|
|
|
4138
4163
|
Changed = 1,
|
|
4139
4164
|
Deleted = 2
|
|
4140
4165
|
}
|
|
4141
|
-
export type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind) => void;
|
|
4166
|
+
export type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind, modifiedTime?: Date) => void;
|
|
4142
4167
|
export type DirectoryWatcherCallback = (fileName: string) => void;
|
|
4143
4168
|
export interface System {
|
|
4144
4169
|
args: string[];
|
|
@@ -4349,6 +4374,8 @@ declare namespace ts {
|
|
|
4349
4374
|
function symbolName(symbol: Symbol): string;
|
|
4350
4375
|
function getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Identifier | PrivateIdentifier | undefined;
|
|
4351
4376
|
function getNameOfDeclaration(declaration: Declaration | Expression | undefined): DeclarationName | undefined;
|
|
4377
|
+
function getDecorators(node: HasDecorators): readonly Decorator[] | undefined;
|
|
4378
|
+
function getModifiers(node: HasModifiers): readonly Modifier[] | undefined;
|
|
4352
4379
|
/**
|
|
4353
4380
|
* Gets the JSDoc parameter tags for the node if present.
|
|
4354
4381
|
*
|
|
@@ -4437,6 +4464,12 @@ declare namespace ts {
|
|
|
4437
4464
|
/**
|
|
4438
4465
|
* Gets the effective type parameters. If the node was parsed in a
|
|
4439
4466
|
* JavaScript file, gets the type parameters from the `@template` tag from JSDoc.
|
|
4467
|
+
*
|
|
4468
|
+
* This does *not* return type parameters from a jsdoc reference to a generic type, eg
|
|
4469
|
+
*
|
|
4470
|
+
* type Id = <T>(x: T) => T
|
|
4471
|
+
* /** @type {Id} /
|
|
4472
|
+
* function id(x) { return x }
|
|
4440
4473
|
*/
|
|
4441
4474
|
function getEffectiveTypeParameterDeclarations(node: DeclarationWithTypeParameters): readonly TypeParameterDeclaration[];
|
|
4442
4475
|
function getEffectiveConstraintOfTypeParameter(node: TypeParameterDeclaration): TypeNode | undefined;
|
|
@@ -4482,6 +4515,7 @@ declare namespace ts {
|
|
|
4482
4515
|
function isClassElement(node: Node): node is ClassElement;
|
|
4483
4516
|
function isClassLike(node: Node): node is ClassLikeDeclaration;
|
|
4484
4517
|
function isAccessor(node: Node): node is AccessorDeclaration;
|
|
4518
|
+
function isModifierLike(node: Node): node is ModifierLike;
|
|
4485
4519
|
function isTypeElement(node: Node): node is TypeElement;
|
|
4486
4520
|
function isClassOrTypeElement(node: Node): node is ClassElement | TypeElement;
|
|
4487
4521
|
function isObjectLiteralElementLike(node: Node): node is ObjectLiteralElementLike;
|
|
@@ -4510,6 +4544,8 @@ declare namespace ts {
|
|
|
4510
4544
|
function isObjectLiteralElement(node: Node): node is ObjectLiteralElement;
|
|
4511
4545
|
function isStringLiteralLike(node: Node): node is StringLiteralLike;
|
|
4512
4546
|
function isJSDocLinkLike(node: Node): node is JSDocLink | JSDocLinkCode | JSDocLinkPlain;
|
|
4547
|
+
function hasRestParameter(s: SignatureDeclaration | JSDocSignature): boolean;
|
|
4548
|
+
function isRestParameter(node: ParameterDeclaration | JSDocParameterTag): boolean;
|
|
4513
4549
|
}
|
|
4514
4550
|
declare namespace ts {
|
|
4515
4551
|
const factory: NodeFactory;
|
|
@@ -4720,6 +4756,7 @@ declare namespace ts {
|
|
|
4720
4756
|
function isImportEqualsDeclaration(node: Node): node is ImportEqualsDeclaration;
|
|
4721
4757
|
function isImportDeclaration(node: Node): node is ImportDeclaration;
|
|
4722
4758
|
function isImportClause(node: Node): node is ImportClause;
|
|
4759
|
+
function isImportTypeAssertionContainer(node: Node): node is ImportTypeAssertionContainer;
|
|
4723
4760
|
function isAssertClause(node: Node): node is AssertClause;
|
|
4724
4761
|
function isAssertEntry(node: Node): node is AssertEntry;
|
|
4725
4762
|
function isNamespaceImport(node: Node): node is NamespaceImport;
|
|
@@ -4797,6 +4834,8 @@ declare namespace ts {
|
|
|
4797
4834
|
}
|
|
4798
4835
|
declare namespace ts {
|
|
4799
4836
|
function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T;
|
|
4837
|
+
function canHaveModifiers(node: Node): node is HasModifiers;
|
|
4838
|
+
function canHaveDecorators(node: Node): node is HasDecorators;
|
|
4800
4839
|
}
|
|
4801
4840
|
declare namespace ts {
|
|
4802
4841
|
/**
|
|
@@ -5098,6 +5137,31 @@ declare namespace ts {
|
|
|
5098
5137
|
export function formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): string;
|
|
5099
5138
|
export function formatDiagnosticsWithColorAndContext(diagnostics: readonly Diagnostic[], host: FormatDiagnosticsHost): string;
|
|
5100
5139
|
export function flattenDiagnosticMessageText(diag: string | DiagnosticMessageChain | undefined, newLine: string, indent?: number): string;
|
|
5140
|
+
/**
|
|
5141
|
+
* Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly
|
|
5142
|
+
* provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.
|
|
5143
|
+
*/
|
|
5144
|
+
export function getModeForFileReference(ref: FileReference | string, containingFileMode: SourceFile["impliedNodeFormat"]): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
|
5145
|
+
/**
|
|
5146
|
+
* Calculates the final resolution mode for an import at some index within a file's imports list. This is generally the explicitly
|
|
5147
|
+
* defined mode of the import if provided, or, if not, the mode of the containing file (with some exceptions: import=require is always commonjs, dynamic import is always esm).
|
|
5148
|
+
* If you have an actual import node, prefer using getModeForUsageLocation on the reference string node.
|
|
5149
|
+
* @param file File to fetch the resolution mode within
|
|
5150
|
+
* @param index Index into the file's complete resolution list to get the resolution of - this is a concatenation of the file's imports and module augmentations
|
|
5151
|
+
*/
|
|
5152
|
+
export function getModeForResolutionAtIndex(file: SourceFile, index: number): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
|
5153
|
+
/**
|
|
5154
|
+
* Calculates the final resolution mode for a given module reference node. This is generally the explicitly provided resolution mode, if
|
|
5155
|
+
* one exists, or the mode of the containing source file. (Excepting import=require, which is always commonjs, and dynamic import, which is always esm).
|
|
5156
|
+
* Notably, this function always returns `undefined` if the containing file has an `undefined` `impliedNodeFormat` - this field is only set when
|
|
5157
|
+
* `moduleResolution` is `node16`+.
|
|
5158
|
+
* @param file The file the import or import-like reference is contained within
|
|
5159
|
+
* @param usage The module reference string
|
|
5160
|
+
* @returns The final resolution mode of the import
|
|
5161
|
+
*/
|
|
5162
|
+
export function getModeForUsageLocation(file: {
|
|
5163
|
+
impliedNodeFormat?: SourceFile["impliedNodeFormat"];
|
|
5164
|
+
}, usage: StringLiteralLike): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
|
5101
5165
|
export function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
|
|
5102
5166
|
/**
|
|
5103
5167
|
* A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
|
|
@@ -5357,6 +5421,10 @@ declare namespace ts {
|
|
|
5357
5421
|
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
5358
5422
|
/** If provided, used to resolve type reference directives, otherwise typescript's default resolution */
|
|
5359
5423
|
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
5424
|
+
/**
|
|
5425
|
+
* Returns the module resolution cache used by a provided `resolveModuleNames` implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it
|
|
5426
|
+
*/
|
|
5427
|
+
getModuleResolutionCache?(): ModuleResolutionCache | undefined;
|
|
5360
5428
|
}
|
|
5361
5429
|
interface WatchCompilerHost<T extends BuilderProgram> extends ProgramHost<T>, WatchHost {
|
|
5362
5430
|
/** Instead of using output d.ts file from project reference, use its source file */
|
|
@@ -5871,6 +5939,8 @@ declare namespace ts {
|
|
|
5871
5939
|
getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined;
|
|
5872
5940
|
getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined;
|
|
5873
5941
|
getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined;
|
|
5942
|
+
getRenameInfo(fileName: string, position: number, preferences: UserPreferences): RenameInfo;
|
|
5943
|
+
/** @deprecated Use the signature with `UserPreferences` instead. */
|
|
5874
5944
|
getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo;
|
|
5875
5945
|
findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): readonly RenameLocation[] | undefined;
|
|
5876
5946
|
getSmartSelectionRange(fileName: string, position: number): SelectionRange;
|
|
@@ -6250,6 +6320,7 @@ declare namespace ts {
|
|
|
6250
6320
|
Insert = "insert",
|
|
6251
6321
|
Remove = "remove"
|
|
6252
6322
|
}
|
|
6323
|
+
/** @deprecated - consider using EditorSettings instead */
|
|
6253
6324
|
interface EditorOptions {
|
|
6254
6325
|
BaseIndentSize?: number;
|
|
6255
6326
|
IndentSize: number;
|
|
@@ -6267,6 +6338,7 @@ declare namespace ts {
|
|
|
6267
6338
|
indentStyle?: IndentStyle;
|
|
6268
6339
|
trimTrailingWhitespace?: boolean;
|
|
6269
6340
|
}
|
|
6341
|
+
/** @deprecated - consider using FormatCodeSettings instead */
|
|
6270
6342
|
interface FormatCodeOptions extends EditorOptions {
|
|
6271
6343
|
InsertSpaceAfterCommaDelimiter: boolean;
|
|
6272
6344
|
InsertSpaceAfterSemicolonInForStatements: boolean;
|
|
@@ -6392,6 +6464,9 @@ declare namespace ts {
|
|
|
6392
6464
|
canRename: false;
|
|
6393
6465
|
localizedErrorMessage: string;
|
|
6394
6466
|
}
|
|
6467
|
+
/**
|
|
6468
|
+
* @deprecated Use `UserPreferences` instead.
|
|
6469
|
+
*/
|
|
6395
6470
|
interface RenameInfoOptions {
|
|
6396
6471
|
readonly allowRenameOfImportPath?: boolean;
|
|
6397
6472
|
}
|
|
@@ -6829,8 +6904,8 @@ declare namespace ts {
|
|
|
6829
6904
|
* @param version Current version of the file. Only used if the file was not found
|
|
6830
6905
|
* in the registry and a new one was created.
|
|
6831
6906
|
*/
|
|
6832
|
-
acquireDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile;
|
|
6833
|
-
acquireDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile;
|
|
6907
|
+
acquireDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile;
|
|
6908
|
+
acquireDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile;
|
|
6834
6909
|
/**
|
|
6835
6910
|
* Request an updated version of an already existing SourceFile with a given fileName
|
|
6836
6911
|
* and compilationSettings. The update will in-turn call updateLanguageServiceSourceFile
|
|
@@ -6846,8 +6921,8 @@ declare namespace ts {
|
|
|
6846
6921
|
* @param scriptSnapshot Text of the file.
|
|
6847
6922
|
* @param version Current version of the file.
|
|
6848
6923
|
*/
|
|
6849
|
-
updateDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile;
|
|
6850
|
-
updateDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind): SourceFile;
|
|
6924
|
+
updateDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile;
|
|
6925
|
+
updateDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile;
|
|
6851
6926
|
getKeyForCompilationSettings(settings: CompilerOptions): DocumentRegistryBucketKey;
|
|
6852
6927
|
/**
|
|
6853
6928
|
* Informs the DocumentRegistry that a file is not needed any longer.
|
|
@@ -6857,9 +6932,10 @@ declare namespace ts {
|
|
|
6857
6932
|
*
|
|
6858
6933
|
* @param fileName The name of the file to be released
|
|
6859
6934
|
* @param compilationSettings The compilation settings used to acquire the file
|
|
6935
|
+
* @param scriptKind The script kind of the file to be released
|
|
6860
6936
|
*/
|
|
6861
|
-
/**@deprecated pass scriptKind for correctness */
|
|
6862
|
-
releaseDocument(fileName: string, compilationSettings: CompilerOptions): void;
|
|
6937
|
+
/**@deprecated pass scriptKind and impliedNodeFormat for correctness */
|
|
6938
|
+
releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind): void;
|
|
6863
6939
|
/**
|
|
6864
6940
|
* Informs the DocumentRegistry that a file is not needed any longer.
|
|
6865
6941
|
*
|
|
@@ -6869,12 +6945,13 @@ declare namespace ts {
|
|
|
6869
6945
|
* @param fileName The name of the file to be released
|
|
6870
6946
|
* @param compilationSettings The compilation settings used to acquire the file
|
|
6871
6947
|
* @param scriptKind The script kind of the file to be released
|
|
6948
|
+
* @param impliedNodeFormat The implied source file format of the file to be released
|
|
6872
6949
|
*/
|
|
6873
|
-
releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind): void;
|
|
6950
|
+
releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void;
|
|
6874
6951
|
/**
|
|
6875
|
-
* @deprecated pass scriptKind for correctness */
|
|
6876
|
-
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey): void;
|
|
6877
|
-
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind): void;
|
|
6952
|
+
* @deprecated pass scriptKind for and impliedNodeFormat correctness */
|
|
6953
|
+
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void;
|
|
6954
|
+
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void;
|
|
6878
6955
|
reportStats(): string;
|
|
6879
6956
|
}
|
|
6880
6957
|
type DocumentRegistryBucketKey = string & {
|
|
@@ -6983,33 +7060,69 @@ declare namespace ts {
|
|
|
6983
7060
|
(node: TypeParameterDeclaration, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration;
|
|
6984
7061
|
};
|
|
6985
7062
|
/** @deprecated Use `factory.createParameterDeclaration` or the factory supplied by your transformation context instead. */
|
|
6986
|
-
const createParameter:
|
|
7063
|
+
const createParameter: {
|
|
7064
|
+
(modifiers: readonly ModifierLike[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken | undefined, type?: TypeNode | undefined, initializer?: Expression | undefined): ParameterDeclaration;
|
|
7065
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken | undefined, type?: TypeNode | undefined, initializer?: Expression | undefined): ParameterDeclaration;
|
|
7066
|
+
};
|
|
6987
7067
|
/** @deprecated Use `factory.updateParameterDeclaration` or the factory supplied by your transformation context instead. */
|
|
6988
|
-
const updateParameter:
|
|
7068
|
+
const updateParameter: {
|
|
7069
|
+
(node: ParameterDeclaration, modifiers: readonly ModifierLike[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration;
|
|
7070
|
+
(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;
|
|
7071
|
+
};
|
|
6989
7072
|
/** @deprecated Use `factory.createDecorator` or the factory supplied by your transformation context instead. */
|
|
6990
7073
|
const createDecorator: (expression: Expression) => Decorator;
|
|
6991
7074
|
/** @deprecated Use `factory.updateDecorator` or the factory supplied by your transformation context instead. */
|
|
6992
7075
|
const updateDecorator: (node: Decorator, expression: Expression) => Decorator;
|
|
6993
7076
|
/** @deprecated Use `factory.createPropertyDeclaration` or the factory supplied by your transformation context instead. */
|
|
6994
|
-
const createProperty:
|
|
7077
|
+
const createProperty: {
|
|
7078
|
+
(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7079
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7080
|
+
};
|
|
6995
7081
|
/** @deprecated Use `factory.updatePropertyDeclaration` or the factory supplied by your transformation context instead. */
|
|
6996
|
-
const updateProperty:
|
|
7082
|
+
const updateProperty: {
|
|
7083
|
+
(node: PropertyDeclaration, modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7084
|
+
(node: PropertyDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7085
|
+
};
|
|
6997
7086
|
/** @deprecated Use `factory.createMethodDeclaration` or the factory supplied by your transformation context instead. */
|
|
6998
|
-
const createMethod:
|
|
7087
|
+
const createMethod: {
|
|
7088
|
+
(modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
|
|
7089
|
+
(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;
|
|
7090
|
+
};
|
|
6999
7091
|
/** @deprecated Use `factory.updateMethodDeclaration` or the factory supplied by your transformation context instead. */
|
|
7000
|
-
const updateMethod:
|
|
7092
|
+
const updateMethod: {
|
|
7093
|
+
(node: MethodDeclaration, modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
|
|
7094
|
+
(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;
|
|
7095
|
+
};
|
|
7001
7096
|
/** @deprecated Use `factory.createConstructorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7002
|
-
const createConstructor:
|
|
7097
|
+
const createConstructor: {
|
|
7098
|
+
(modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7099
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7100
|
+
};
|
|
7003
7101
|
/** @deprecated Use `factory.updateConstructorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7004
|
-
const updateConstructor:
|
|
7102
|
+
const updateConstructor: {
|
|
7103
|
+
(node: ConstructorDeclaration, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7104
|
+
(node: ConstructorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7105
|
+
};
|
|
7005
7106
|
/** @deprecated Use `factory.createGetAccessorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7006
|
-
const createGetAccessor:
|
|
7107
|
+
const createGetAccessor: {
|
|
7108
|
+
(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7109
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7110
|
+
};
|
|
7007
7111
|
/** @deprecated Use `factory.updateGetAccessorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7008
|
-
const updateGetAccessor:
|
|
7112
|
+
const updateGetAccessor: {
|
|
7113
|
+
(node: GetAccessorDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7114
|
+
(node: GetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7115
|
+
};
|
|
7009
7116
|
/** @deprecated Use `factory.createSetAccessorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7010
|
-
const createSetAccessor:
|
|
7117
|
+
const createSetAccessor: {
|
|
7118
|
+
(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7119
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7120
|
+
};
|
|
7011
7121
|
/** @deprecated Use `factory.updateSetAccessorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7012
|
-
const updateSetAccessor:
|
|
7122
|
+
const updateSetAccessor: {
|
|
7123
|
+
(node: SetAccessorDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7124
|
+
(node: SetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7125
|
+
};
|
|
7013
7126
|
/** @deprecated Use `factory.createCallSignature` or the factory supplied by your transformation context instead. */
|
|
7014
7127
|
const createCallSignature: (typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined) => CallSignatureDeclaration;
|
|
7015
7128
|
/** @deprecated Use `factory.updateCallSignature` or the factory supplied by your transformation context instead. */
|
|
@@ -7019,7 +7132,10 @@ declare namespace ts {
|
|
|
7019
7132
|
/** @deprecated Use `factory.updateConstructSignature` or the factory supplied by your transformation context instead. */
|
|
7020
7133
|
const updateConstructSignature: (node: ConstructSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined) => ConstructSignatureDeclaration;
|
|
7021
7134
|
/** @deprecated Use `factory.updateIndexSignature` or the factory supplied by your transformation context instead. */
|
|
7022
|
-
const updateIndexSignature:
|
|
7135
|
+
const updateIndexSignature: {
|
|
7136
|
+
(node: IndexSignatureDeclaration, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
7137
|
+
(node: IndexSignatureDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
7138
|
+
};
|
|
7023
7139
|
/** @deprecated Use `factory.createKeywordTypeNode` or the factory supplied by your transformation context instead. */
|
|
7024
7140
|
const createKeywordTypeNode: <TKind extends KeywordTypeSyntaxKind>(kind: TKind) => KeywordTypeNode<TKind>;
|
|
7025
7141
|
/** @deprecated Use `factory.createTypePredicateNode` or the factory supplied by your transformation context instead. */
|
|
@@ -7080,13 +7196,14 @@ declare namespace ts {
|
|
|
7080
7196
|
const updateInferTypeNode: (node: InferTypeNode, typeParameter: TypeParameterDeclaration) => InferTypeNode;
|
|
7081
7197
|
/** @deprecated Use `factory.createImportTypeNode` or the factory supplied by your transformation context instead. */
|
|
7082
7198
|
const createImportTypeNode: {
|
|
7083
|
-
(argument: TypeNode, qualifier?: EntityName | undefined, typeArguments?: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7084
7199
|
(argument: TypeNode, assertions?: ImportTypeAssertionContainer | undefined, qualifier?: EntityName | undefined, typeArguments?: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7200
|
+
(argument: TypeNode, assertions?: ImportTypeAssertionContainer | undefined, qualifier?: EntityName | undefined, typeArguments?: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7201
|
+
(argument: TypeNode, qualifier?: EntityName | undefined, typeArguments?: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7085
7202
|
};
|
|
7086
7203
|
/** @deprecated Use `factory.updateImportTypeNode` or the factory supplied by your transformation context instead. */
|
|
7087
7204
|
const updateImportTypeNode: {
|
|
7088
|
-
(node: ImportTypeNode, argument: TypeNode, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7089
7205
|
(node: ImportTypeNode, argument: TypeNode, assertions: ImportTypeAssertionContainer | undefined, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7206
|
+
(node: ImportTypeNode, argument: TypeNode, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7090
7207
|
};
|
|
7091
7208
|
/** @deprecated Use `factory.createParenthesizedType` or the factory supplied by your transformation context instead. */
|
|
7092
7209
|
const createParenthesizedType: (type: TypeNode) => ParenthesizedTypeNode;
|
|
@@ -7331,29 +7448,65 @@ declare namespace ts {
|
|
|
7331
7448
|
/** @deprecated Use `factory.updateVariableDeclarationList` or the factory supplied by your transformation context instead. */
|
|
7332
7449
|
const updateVariableDeclarationList: (node: VariableDeclarationList, declarations: readonly VariableDeclaration[]) => VariableDeclarationList;
|
|
7333
7450
|
/** @deprecated Use `factory.createFunctionDeclaration` or the factory supplied by your transformation context instead. */
|
|
7334
|
-
const createFunctionDeclaration:
|
|
7451
|
+
const createFunctionDeclaration: {
|
|
7452
|
+
(modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
|
|
7453
|
+
(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;
|
|
7454
|
+
};
|
|
7335
7455
|
/** @deprecated Use `factory.updateFunctionDeclaration` or the factory supplied by your transformation context instead. */
|
|
7336
|
-
const updateFunctionDeclaration:
|
|
7456
|
+
const updateFunctionDeclaration: {
|
|
7457
|
+
(node: FunctionDeclaration, modifiers: readonly ModifierLike[] | undefined, asteriskToken: AsteriskToken | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
|
|
7458
|
+
(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;
|
|
7459
|
+
};
|
|
7337
7460
|
/** @deprecated Use `factory.createClassDeclaration` or the factory supplied by your transformation context instead. */
|
|
7338
|
-
const createClassDeclaration:
|
|
7461
|
+
const createClassDeclaration: {
|
|
7462
|
+
(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
7463
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
7464
|
+
};
|
|
7339
7465
|
/** @deprecated Use `factory.updateClassDeclaration` or the factory supplied by your transformation context instead. */
|
|
7340
|
-
const updateClassDeclaration:
|
|
7466
|
+
const updateClassDeclaration: {
|
|
7467
|
+
(node: ClassDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
7468
|
+
(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;
|
|
7469
|
+
};
|
|
7341
7470
|
/** @deprecated Use `factory.createInterfaceDeclaration` or the factory supplied by your transformation context instead. */
|
|
7342
|
-
const createInterfaceDeclaration:
|
|
7471
|
+
const createInterfaceDeclaration: {
|
|
7472
|
+
(modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7473
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7474
|
+
};
|
|
7343
7475
|
/** @deprecated Use `factory.updateInterfaceDeclaration` or the factory supplied by your transformation context instead. */
|
|
7344
|
-
const updateInterfaceDeclaration:
|
|
7476
|
+
const updateInterfaceDeclaration: {
|
|
7477
|
+
(node: InterfaceDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7478
|
+
(node: InterfaceDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7479
|
+
};
|
|
7345
7480
|
/** @deprecated Use `factory.createTypeAliasDeclaration` or the factory supplied by your transformation context instead. */
|
|
7346
|
-
const createTypeAliasDeclaration:
|
|
7481
|
+
const createTypeAliasDeclaration: {
|
|
7482
|
+
(modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7483
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7484
|
+
};
|
|
7347
7485
|
/** @deprecated Use `factory.updateTypeAliasDeclaration` or the factory supplied by your transformation context instead. */
|
|
7348
|
-
const updateTypeAliasDeclaration:
|
|
7486
|
+
const updateTypeAliasDeclaration: {
|
|
7487
|
+
(node: TypeAliasDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7488
|
+
(node: TypeAliasDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7489
|
+
};
|
|
7349
7490
|
/** @deprecated Use `factory.createEnumDeclaration` or the factory supplied by your transformation context instead. */
|
|
7350
|
-
const createEnumDeclaration:
|
|
7491
|
+
const createEnumDeclaration: {
|
|
7492
|
+
(modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7493
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7494
|
+
};
|
|
7351
7495
|
/** @deprecated Use `factory.updateEnumDeclaration` or the factory supplied by your transformation context instead. */
|
|
7352
|
-
const updateEnumDeclaration:
|
|
7496
|
+
const updateEnumDeclaration: {
|
|
7497
|
+
(node: EnumDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7498
|
+
(node: EnumDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7499
|
+
};
|
|
7353
7500
|
/** @deprecated Use `factory.createModuleDeclaration` or the factory supplied by your transformation context instead. */
|
|
7354
|
-
const createModuleDeclaration:
|
|
7501
|
+
const createModuleDeclaration: {
|
|
7502
|
+
(modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags | undefined): ModuleDeclaration;
|
|
7503
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags | undefined): ModuleDeclaration;
|
|
7504
|
+
};
|
|
7355
7505
|
/** @deprecated Use `factory.updateModuleDeclaration` or the factory supplied by your transformation context instead. */
|
|
7356
|
-
const updateModuleDeclaration:
|
|
7506
|
+
const updateModuleDeclaration: {
|
|
7507
|
+
(node: ModuleDeclaration, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
7508
|
+
(node: ModuleDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
7509
|
+
};
|
|
7357
7510
|
/** @deprecated Use `factory.createModuleBlock` or the factory supplied by your transformation context instead. */
|
|
7358
7511
|
const createModuleBlock: (statements: readonly Statement[]) => ModuleBlock;
|
|
7359
7512
|
/** @deprecated Use `factory.updateModuleBlock` or the factory supplied by your transformation context instead. */
|
|
@@ -7367,13 +7520,25 @@ declare namespace ts {
|
|
|
7367
7520
|
/** @deprecated Use `factory.updateNamespaceExportDeclaration` or the factory supplied by your transformation context instead. */
|
|
7368
7521
|
const updateNamespaceExportDeclaration: (node: NamespaceExportDeclaration, name: Identifier) => NamespaceExportDeclaration;
|
|
7369
7522
|
/** @deprecated Use `factory.createImportEqualsDeclaration` or the factory supplied by your transformation context instead. */
|
|
7370
|
-
const createImportEqualsDeclaration:
|
|
7523
|
+
const createImportEqualsDeclaration: {
|
|
7524
|
+
(modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7525
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7526
|
+
};
|
|
7371
7527
|
/** @deprecated Use `factory.updateImportEqualsDeclaration` or the factory supplied by your transformation context instead. */
|
|
7372
|
-
const updateImportEqualsDeclaration:
|
|
7528
|
+
const updateImportEqualsDeclaration: {
|
|
7529
|
+
(node: ImportEqualsDeclaration, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7530
|
+
(node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7531
|
+
};
|
|
7373
7532
|
/** @deprecated Use `factory.createImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
7374
|
-
const createImportDeclaration:
|
|
7533
|
+
const createImportDeclaration: {
|
|
7534
|
+
(modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause | undefined): ImportDeclaration;
|
|
7535
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause | undefined): ImportDeclaration;
|
|
7536
|
+
};
|
|
7375
7537
|
/** @deprecated Use `factory.updateImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
7376
|
-
const updateImportDeclaration:
|
|
7538
|
+
const updateImportDeclaration: {
|
|
7539
|
+
(node: ImportDeclaration, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
7540
|
+
(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
7541
|
+
};
|
|
7377
7542
|
/** @deprecated Use `factory.createNamespaceImport` or the factory supplied by your transformation context instead. */
|
|
7378
7543
|
const createNamespaceImport: (name: Identifier) => NamespaceImport;
|
|
7379
7544
|
/** @deprecated Use `factory.updateNamespaceImport` or the factory supplied by your transformation context instead. */
|
|
@@ -7387,9 +7552,15 @@ declare namespace ts {
|
|
|
7387
7552
|
/** @deprecated Use `factory.updateImportSpecifier` or the factory supplied by your transformation context instead. */
|
|
7388
7553
|
const updateImportSpecifier: (node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier) => ImportSpecifier;
|
|
7389
7554
|
/** @deprecated Use `factory.createExportAssignment` or the factory supplied by your transformation context instead. */
|
|
7390
|
-
const createExportAssignment:
|
|
7555
|
+
const createExportAssignment: {
|
|
7556
|
+
(modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
7557
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
7558
|
+
};
|
|
7391
7559
|
/** @deprecated Use `factory.updateExportAssignment` or the factory supplied by your transformation context instead. */
|
|
7392
|
-
const updateExportAssignment:
|
|
7560
|
+
const updateExportAssignment: {
|
|
7561
|
+
(node: ExportAssignment, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
7562
|
+
(node: ExportAssignment, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
7563
|
+
};
|
|
7393
7564
|
/** @deprecated Use `factory.createNamedExports` or the factory supplied by your transformation context instead. */
|
|
7394
7565
|
const createNamedExports: (elements: readonly ExportSpecifier[]) => NamedExports;
|
|
7395
7566
|
/** @deprecated Use `factory.updateNamedExports` or the factory supplied by your transformation context instead. */
|
|
@@ -7479,9 +7650,9 @@ declare namespace ts {
|
|
|
7479
7650
|
/** @deprecated Use `factory.updateJsxFragment` or the factory supplied by your transformation context instead. */
|
|
7480
7651
|
const updateJsxFragment: (node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment) => JsxFragment;
|
|
7481
7652
|
/** @deprecated Use `factory.createJsxAttribute` or the factory supplied by your transformation context instead. */
|
|
7482
|
-
const createJsxAttribute: (name: Identifier, initializer:
|
|
7653
|
+
const createJsxAttribute: (name: Identifier, initializer: JsxAttributeValue | undefined) => JsxAttribute;
|
|
7483
7654
|
/** @deprecated Use `factory.updateJsxAttribute` or the factory supplied by your transformation context instead. */
|
|
7484
|
-
const updateJsxAttribute: (node: JsxAttribute, name: Identifier, initializer:
|
|
7655
|
+
const updateJsxAttribute: (node: JsxAttribute, name: Identifier, initializer: JsxAttributeValue | undefined) => JsxAttribute;
|
|
7485
7656
|
/** @deprecated Use `factory.createJsxAttributes` or the factory supplied by your transformation context instead. */
|
|
7486
7657
|
const createJsxAttributes: (properties: readonly JsxAttributeLike[]) => JsxAttributes;
|
|
7487
7658
|
/** @deprecated Use `factory.updateJsxAttributes` or the factory supplied by your transformation context instead. */
|
|
@@ -7693,8 +7864,12 @@ declare namespace ts {
|
|
|
7693
7864
|
* @deprecated Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`.
|
|
7694
7865
|
*/
|
|
7695
7866
|
const getMutableClone: <T extends Node>(node: T) => T;
|
|
7867
|
+
}
|
|
7868
|
+
declare namespace ts {
|
|
7696
7869
|
/** @deprecated Use `isTypeAssertionExpression` instead. */
|
|
7697
7870
|
const isTypeAssertion: (node: Node) => node is TypeAssertion;
|
|
7871
|
+
}
|
|
7872
|
+
declare namespace ts {
|
|
7698
7873
|
/**
|
|
7699
7874
|
* @deprecated Use `ts.ReadonlyESMap<K, V>` instead.
|
|
7700
7875
|
*/
|
|
@@ -7705,10 +7880,239 @@ declare namespace ts {
|
|
|
7705
7880
|
*/
|
|
7706
7881
|
interface Map<T> extends ESMap<string, T> {
|
|
7707
7882
|
}
|
|
7883
|
+
}
|
|
7884
|
+
declare namespace ts {
|
|
7708
7885
|
/**
|
|
7709
7886
|
* @deprecated Use `isMemberName` instead.
|
|
7710
7887
|
*/
|
|
7711
7888
|
const isIdentifierOrPrivateIdentifier: (node: Node) => node is MemberName;
|
|
7712
7889
|
}
|
|
7890
|
+
declare namespace ts {
|
|
7891
|
+
interface NodeFactory {
|
|
7892
|
+
/** @deprecated Use the overload that accepts 'modifiers' */
|
|
7893
|
+
createConstructorTypeNode(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): ConstructorTypeNode;
|
|
7894
|
+
/** @deprecated Use the overload that accepts 'modifiers' */
|
|
7895
|
+
updateConstructorTypeNode(node: ConstructorTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode): ConstructorTypeNode;
|
|
7896
|
+
}
|
|
7897
|
+
}
|
|
7898
|
+
declare namespace ts {
|
|
7899
|
+
interface NodeFactory {
|
|
7900
|
+
createImportTypeNode(argument: TypeNode, assertions?: ImportTypeAssertionContainer, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
|
|
7901
|
+
/** @deprecated Use the overload that accepts 'assertions' */
|
|
7902
|
+
createImportTypeNode(argument: TypeNode, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
|
|
7903
|
+
/** @deprecated Use the overload that accepts 'assertions' */
|
|
7904
|
+
updateImportTypeNode(node: ImportTypeNode, argument: TypeNode, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean): ImportTypeNode;
|
|
7905
|
+
}
|
|
7906
|
+
}
|
|
7907
|
+
declare namespace ts {
|
|
7908
|
+
interface NodeFactory {
|
|
7909
|
+
/** @deprecated Use the overload that accepts 'modifiers' */
|
|
7910
|
+
createTypeParameterDeclaration(name: string | Identifier, constraint?: TypeNode, defaultType?: TypeNode): TypeParameterDeclaration;
|
|
7911
|
+
/** @deprecated Use the overload that accepts 'modifiers' */
|
|
7912
|
+
updateTypeParameterDeclaration(node: TypeParameterDeclaration, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration;
|
|
7913
|
+
}
|
|
7914
|
+
}
|
|
7915
|
+
declare namespace ts {
|
|
7916
|
+
interface Node {
|
|
7917
|
+
/**
|
|
7918
|
+
* @deprecated `decorators` has been removed from `Node` and merged with `modifiers` on the `Node` subtypes that support them.
|
|
7919
|
+
* Use `ts.canHaveDecorators()` to test whether a `Node` can have decorators.
|
|
7920
|
+
* Use `ts.getDecorators()` to get the decorators of a `Node`.
|
|
7921
|
+
*
|
|
7922
|
+
* For example:
|
|
7923
|
+
* ```ts
|
|
7924
|
+
* const decorators = ts.canHaveDecorators(node) ? ts.getDecorators(node) : undefined;
|
|
7925
|
+
* ```
|
|
7926
|
+
*/
|
|
7927
|
+
readonly decorators?: undefined;
|
|
7928
|
+
/**
|
|
7929
|
+
* @deprecated `modifiers` has been removed from `Node` and moved to the `Node` subtypes that support them.
|
|
7930
|
+
* Use `ts.canHaveModifiers()` to test whether a `Node` can have modifiers.
|
|
7931
|
+
* Use `ts.getModifiers()` to get the modifiers of a `Node`.
|
|
7932
|
+
*
|
|
7933
|
+
* For example:
|
|
7934
|
+
* ```ts
|
|
7935
|
+
* const modifiers = ts.canHaveModifiers(node) ? ts.getModifiers(node) : undefined;
|
|
7936
|
+
* ```
|
|
7937
|
+
*/
|
|
7938
|
+
readonly modifiers?: NodeArray<ModifierLike> | undefined;
|
|
7939
|
+
}
|
|
7940
|
+
interface PropertySignature {
|
|
7941
|
+
/** @deprecated A property signature cannot have an initializer */
|
|
7942
|
+
readonly initializer?: Expression | undefined;
|
|
7943
|
+
}
|
|
7944
|
+
interface PropertyAssignment {
|
|
7945
|
+
/** @deprecated A property assignment cannot have a question token */
|
|
7946
|
+
readonly questionToken?: QuestionToken | undefined;
|
|
7947
|
+
/** @deprecated A property assignment cannot have an exclamation token */
|
|
7948
|
+
readonly exclamationToken?: ExclamationToken | undefined;
|
|
7949
|
+
}
|
|
7950
|
+
interface ShorthandPropertyAssignment {
|
|
7951
|
+
/** @deprecated A shorthand property assignment cannot have modifiers */
|
|
7952
|
+
readonly modifiers?: NodeArray<Modifier> | undefined;
|
|
7953
|
+
/** @deprecated A shorthand property assignment cannot have a question token */
|
|
7954
|
+
readonly questionToken?: QuestionToken | undefined;
|
|
7955
|
+
/** @deprecated A shorthand property assignment cannot have an exclamation token */
|
|
7956
|
+
readonly exclamationToken?: ExclamationToken | undefined;
|
|
7957
|
+
}
|
|
7958
|
+
interface FunctionTypeNode {
|
|
7959
|
+
/** @deprecated A function type cannot have modifiers */
|
|
7960
|
+
readonly modifiers?: NodeArray<Modifier> | undefined;
|
|
7961
|
+
}
|
|
7962
|
+
interface NodeFactory {
|
|
7963
|
+
/**
|
|
7964
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
7965
|
+
*/
|
|
7966
|
+
createParameterDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration;
|
|
7967
|
+
/**
|
|
7968
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
7969
|
+
*/
|
|
7970
|
+
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;
|
|
7971
|
+
/**
|
|
7972
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
7973
|
+
*/
|
|
7974
|
+
createPropertyDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7975
|
+
/**
|
|
7976
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
7977
|
+
*/
|
|
7978
|
+
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;
|
|
7979
|
+
/**
|
|
7980
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
7981
|
+
*/
|
|
7982
|
+
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;
|
|
7983
|
+
/**
|
|
7984
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
7985
|
+
*/
|
|
7986
|
+
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;
|
|
7987
|
+
/**
|
|
7988
|
+
* @deprecated This node does not support Decorators. Callers should use an overload that does not accept a `decorators` parameter.
|
|
7989
|
+
*/
|
|
7990
|
+
createConstructorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7991
|
+
/**
|
|
7992
|
+
* @deprecated This node does not support Decorators. Callers should use an overload that does not accept a `decorators` parameter.
|
|
7993
|
+
*/
|
|
7994
|
+
updateConstructorDeclaration(node: ConstructorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7995
|
+
/**
|
|
7996
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
7997
|
+
*/
|
|
7998
|
+
createGetAccessorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7999
|
+
/**
|
|
8000
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8001
|
+
*/
|
|
8002
|
+
updateGetAccessorDeclaration(node: GetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
8003
|
+
/**
|
|
8004
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8005
|
+
*/
|
|
8006
|
+
createSetAccessorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
8007
|
+
/**
|
|
8008
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8009
|
+
*/
|
|
8010
|
+
updateSetAccessorDeclaration(node: SetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
8011
|
+
/**
|
|
8012
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8013
|
+
*/
|
|
8014
|
+
createIndexSignature(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
8015
|
+
/**
|
|
8016
|
+
* @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.
|
|
8017
|
+
*/
|
|
8018
|
+
updateIndexSignature(node: IndexSignatureDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
8019
|
+
/**
|
|
8020
|
+
* @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.
|
|
8021
|
+
*/
|
|
8022
|
+
createClassStaticBlockDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, body: Block): ClassStaticBlockDeclaration;
|
|
8023
|
+
/**
|
|
8024
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8025
|
+
*/
|
|
8026
|
+
updateClassStaticBlockDeclaration(node: ClassStaticBlockDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, body: Block): ClassStaticBlockDeclaration;
|
|
8027
|
+
/**
|
|
8028
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8029
|
+
*/
|
|
8030
|
+
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;
|
|
8031
|
+
/**
|
|
8032
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8033
|
+
*/
|
|
8034
|
+
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;
|
|
8035
|
+
/**
|
|
8036
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8037
|
+
*/
|
|
8038
|
+
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;
|
|
8039
|
+
/**
|
|
8040
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8041
|
+
*/
|
|
8042
|
+
updateFunctionDeclaration(node: FunctionDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, asteriskToken: AsteriskToken | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
|
|
8043
|
+
/**
|
|
8044
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8045
|
+
*/
|
|
8046
|
+
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;
|
|
8047
|
+
/**
|
|
8048
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8049
|
+
*/
|
|
8050
|
+
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;
|
|
8051
|
+
/**
|
|
8052
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8053
|
+
*/
|
|
8054
|
+
createInterfaceDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
8055
|
+
/**
|
|
8056
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8057
|
+
*/
|
|
8058
|
+
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;
|
|
8059
|
+
/**
|
|
8060
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8061
|
+
*/
|
|
8062
|
+
createTypeAliasDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
8063
|
+
/**
|
|
8064
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8065
|
+
*/
|
|
8066
|
+
updateTypeAliasDeclaration(node: TypeAliasDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
8067
|
+
/**
|
|
8068
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8069
|
+
*/
|
|
8070
|
+
createEnumDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
8071
|
+
/**
|
|
8072
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8073
|
+
*/
|
|
8074
|
+
updateEnumDeclaration(node: EnumDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
8075
|
+
/**
|
|
8076
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8077
|
+
*/
|
|
8078
|
+
createModuleDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags): ModuleDeclaration;
|
|
8079
|
+
/**
|
|
8080
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8081
|
+
*/
|
|
8082
|
+
updateModuleDeclaration(node: ModuleDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
8083
|
+
/**
|
|
8084
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8085
|
+
*/
|
|
8086
|
+
createImportEqualsDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
8087
|
+
/**
|
|
8088
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8089
|
+
*/
|
|
8090
|
+
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
8091
|
+
/**
|
|
8092
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8093
|
+
*/
|
|
8094
|
+
createImportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
|
|
8095
|
+
/**
|
|
8096
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8097
|
+
*/
|
|
8098
|
+
updateImportDeclaration(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
8099
|
+
/**
|
|
8100
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8101
|
+
*/
|
|
8102
|
+
createExportAssignment(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
8103
|
+
/**
|
|
8104
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8105
|
+
*/
|
|
8106
|
+
updateExportAssignment(node: ExportAssignment, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
8107
|
+
/**
|
|
8108
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8109
|
+
*/
|
|
8110
|
+
createExportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
|
|
8111
|
+
/**
|
|
8112
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
8113
|
+
*/
|
|
8114
|
+
updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
|
|
8115
|
+
}
|
|
8116
|
+
}
|
|
7713
8117
|
|
|
7714
8118
|
export = ts;
|