@schematics/angular 14.2.0-next.2 → 14.2.1
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 +579 -119
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +8910 -4711
- 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;
|
|
@@ -5098,6 +5135,31 @@ declare namespace ts {
|
|
|
5098
5135
|
export function formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): string;
|
|
5099
5136
|
export function formatDiagnosticsWithColorAndContext(diagnostics: readonly Diagnostic[], host: FormatDiagnosticsHost): string;
|
|
5100
5137
|
export function flattenDiagnosticMessageText(diag: string | DiagnosticMessageChain | undefined, newLine: string, indent?: number): string;
|
|
5138
|
+
/**
|
|
5139
|
+
* Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly
|
|
5140
|
+
* provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.
|
|
5141
|
+
*/
|
|
5142
|
+
export function getModeForFileReference(ref: FileReference | string, containingFileMode: SourceFile["impliedNodeFormat"]): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
|
5143
|
+
/**
|
|
5144
|
+
* Calculates the final resolution mode for an import at some index within a file's imports list. This is generally the explicitly
|
|
5145
|
+
* 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).
|
|
5146
|
+
* If you have an actual import node, prefer using getModeForUsageLocation on the reference string node.
|
|
5147
|
+
* @param file File to fetch the resolution mode within
|
|
5148
|
+
* @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
|
|
5149
|
+
*/
|
|
5150
|
+
export function getModeForResolutionAtIndex(file: SourceFile, index: number): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
|
5151
|
+
/**
|
|
5152
|
+
* Calculates the final resolution mode for a given module reference node. This is generally the explicitly provided resolution mode, if
|
|
5153
|
+
* one exists, or the mode of the containing source file. (Excepting import=require, which is always commonjs, and dynamic import, which is always esm).
|
|
5154
|
+
* Notably, this function always returns `undefined` if the containing file has an `undefined` `impliedNodeFormat` - this field is only set when
|
|
5155
|
+
* `moduleResolution` is `node16`+.
|
|
5156
|
+
* @param file The file the import or import-like reference is contained within
|
|
5157
|
+
* @param usage The module reference string
|
|
5158
|
+
* @returns The final resolution mode of the import
|
|
5159
|
+
*/
|
|
5160
|
+
export function getModeForUsageLocation(file: {
|
|
5161
|
+
impliedNodeFormat?: SourceFile["impliedNodeFormat"];
|
|
5162
|
+
}, usage: StringLiteralLike): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
|
|
5101
5163
|
export function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
|
|
5102
5164
|
/**
|
|
5103
5165
|
* 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 +5419,10 @@ declare namespace ts {
|
|
|
5357
5419
|
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
5358
5420
|
/** If provided, used to resolve type reference directives, otherwise typescript's default resolution */
|
|
5359
5421
|
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
5422
|
+
/**
|
|
5423
|
+
* 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
|
|
5424
|
+
*/
|
|
5425
|
+
getModuleResolutionCache?(): ModuleResolutionCache | undefined;
|
|
5360
5426
|
}
|
|
5361
5427
|
interface WatchCompilerHost<T extends BuilderProgram> extends ProgramHost<T>, WatchHost {
|
|
5362
5428
|
/** Instead of using output d.ts file from project reference, use its source file */
|
|
@@ -5871,6 +5937,8 @@ declare namespace ts {
|
|
|
5871
5937
|
getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined;
|
|
5872
5938
|
getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined;
|
|
5873
5939
|
getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined;
|
|
5940
|
+
getRenameInfo(fileName: string, position: number, preferences: UserPreferences): RenameInfo;
|
|
5941
|
+
/** @deprecated Use the signature with `UserPreferences` instead. */
|
|
5874
5942
|
getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo;
|
|
5875
5943
|
findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): readonly RenameLocation[] | undefined;
|
|
5876
5944
|
getSmartSelectionRange(fileName: string, position: number): SelectionRange;
|
|
@@ -6250,6 +6318,7 @@ declare namespace ts {
|
|
|
6250
6318
|
Insert = "insert",
|
|
6251
6319
|
Remove = "remove"
|
|
6252
6320
|
}
|
|
6321
|
+
/** @deprecated - consider using EditorSettings instead */
|
|
6253
6322
|
interface EditorOptions {
|
|
6254
6323
|
BaseIndentSize?: number;
|
|
6255
6324
|
IndentSize: number;
|
|
@@ -6267,6 +6336,7 @@ declare namespace ts {
|
|
|
6267
6336
|
indentStyle?: IndentStyle;
|
|
6268
6337
|
trimTrailingWhitespace?: boolean;
|
|
6269
6338
|
}
|
|
6339
|
+
/** @deprecated - consider using FormatCodeSettings instead */
|
|
6270
6340
|
interface FormatCodeOptions extends EditorOptions {
|
|
6271
6341
|
InsertSpaceAfterCommaDelimiter: boolean;
|
|
6272
6342
|
InsertSpaceAfterSemicolonInForStatements: boolean;
|
|
@@ -6392,6 +6462,9 @@ declare namespace ts {
|
|
|
6392
6462
|
canRename: false;
|
|
6393
6463
|
localizedErrorMessage: string;
|
|
6394
6464
|
}
|
|
6465
|
+
/**
|
|
6466
|
+
* @deprecated Use `UserPreferences` instead.
|
|
6467
|
+
*/
|
|
6395
6468
|
interface RenameInfoOptions {
|
|
6396
6469
|
readonly allowRenameOfImportPath?: boolean;
|
|
6397
6470
|
}
|
|
@@ -6829,8 +6902,8 @@ declare namespace ts {
|
|
|
6829
6902
|
* @param version Current version of the file. Only used if the file was not found
|
|
6830
6903
|
* in the registry and a new one was created.
|
|
6831
6904
|
*/
|
|
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;
|
|
6905
|
+
acquireDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile;
|
|
6906
|
+
acquireDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile;
|
|
6834
6907
|
/**
|
|
6835
6908
|
* Request an updated version of an already existing SourceFile with a given fileName
|
|
6836
6909
|
* and compilationSettings. The update will in-turn call updateLanguageServiceSourceFile
|
|
@@ -6846,8 +6919,8 @@ declare namespace ts {
|
|
|
6846
6919
|
* @param scriptSnapshot Text of the file.
|
|
6847
6920
|
* @param version Current version of the file.
|
|
6848
6921
|
*/
|
|
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;
|
|
6922
|
+
updateDocument(fileName: string, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile;
|
|
6923
|
+
updateDocumentWithKey(fileName: string, path: Path, compilationSettingsOrHost: CompilerOptions | MinimalResolutionCacheHost, key: DocumentRegistryBucketKey, scriptSnapshot: IScriptSnapshot, version: string, scriptKind?: ScriptKind, sourceFileOptions?: CreateSourceFileOptions | ScriptTarget): SourceFile;
|
|
6851
6924
|
getKeyForCompilationSettings(settings: CompilerOptions): DocumentRegistryBucketKey;
|
|
6852
6925
|
/**
|
|
6853
6926
|
* Informs the DocumentRegistry that a file is not needed any longer.
|
|
@@ -6857,9 +6930,10 @@ declare namespace ts {
|
|
|
6857
6930
|
*
|
|
6858
6931
|
* @param fileName The name of the file to be released
|
|
6859
6932
|
* @param compilationSettings The compilation settings used to acquire the file
|
|
6933
|
+
* @param scriptKind The script kind of the file to be released
|
|
6860
6934
|
*/
|
|
6861
|
-
/**@deprecated pass scriptKind for correctness */
|
|
6862
|
-
releaseDocument(fileName: string, compilationSettings: CompilerOptions): void;
|
|
6935
|
+
/**@deprecated pass scriptKind and impliedNodeFormat for correctness */
|
|
6936
|
+
releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind?: ScriptKind): void;
|
|
6863
6937
|
/**
|
|
6864
6938
|
* Informs the DocumentRegistry that a file is not needed any longer.
|
|
6865
6939
|
*
|
|
@@ -6869,12 +6943,13 @@ declare namespace ts {
|
|
|
6869
6943
|
* @param fileName The name of the file to be released
|
|
6870
6944
|
* @param compilationSettings The compilation settings used to acquire the file
|
|
6871
6945
|
* @param scriptKind The script kind of the file to be released
|
|
6946
|
+
* @param impliedNodeFormat The implied source file format of the file to be released
|
|
6872
6947
|
*/
|
|
6873
|
-
releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind): void;
|
|
6948
|
+
releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void;
|
|
6874
6949
|
/**
|
|
6875
|
-
* @deprecated pass scriptKind for correctness */
|
|
6876
|
-
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey): void;
|
|
6877
|
-
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind): void;
|
|
6950
|
+
* @deprecated pass scriptKind for and impliedNodeFormat correctness */
|
|
6951
|
+
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void;
|
|
6952
|
+
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void;
|
|
6878
6953
|
reportStats(): string;
|
|
6879
6954
|
}
|
|
6880
6955
|
type DocumentRegistryBucketKey = string & {
|
|
@@ -6983,33 +7058,69 @@ declare namespace ts {
|
|
|
6983
7058
|
(node: TypeParameterDeclaration, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration;
|
|
6984
7059
|
};
|
|
6985
7060
|
/** @deprecated Use `factory.createParameterDeclaration` or the factory supplied by your transformation context instead. */
|
|
6986
|
-
const createParameter:
|
|
7061
|
+
const createParameter: {
|
|
7062
|
+
(modifiers: readonly ModifierLike[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken | undefined, type?: TypeNode | undefined, initializer?: Expression | undefined): ParameterDeclaration;
|
|
7063
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken | undefined, type?: TypeNode | undefined, initializer?: Expression | undefined): ParameterDeclaration;
|
|
7064
|
+
};
|
|
6987
7065
|
/** @deprecated Use `factory.updateParameterDeclaration` or the factory supplied by your transformation context instead. */
|
|
6988
|
-
const updateParameter:
|
|
7066
|
+
const updateParameter: {
|
|
7067
|
+
(node: ParameterDeclaration, modifiers: readonly ModifierLike[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration;
|
|
7068
|
+
(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;
|
|
7069
|
+
};
|
|
6989
7070
|
/** @deprecated Use `factory.createDecorator` or the factory supplied by your transformation context instead. */
|
|
6990
7071
|
const createDecorator: (expression: Expression) => Decorator;
|
|
6991
7072
|
/** @deprecated Use `factory.updateDecorator` or the factory supplied by your transformation context instead. */
|
|
6992
7073
|
const updateDecorator: (node: Decorator, expression: Expression) => Decorator;
|
|
6993
7074
|
/** @deprecated Use `factory.createPropertyDeclaration` or the factory supplied by your transformation context instead. */
|
|
6994
|
-
const createProperty:
|
|
7075
|
+
const createProperty: {
|
|
7076
|
+
(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7077
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7078
|
+
};
|
|
6995
7079
|
/** @deprecated Use `factory.updatePropertyDeclaration` or the factory supplied by your transformation context instead. */
|
|
6996
|
-
const updateProperty:
|
|
7080
|
+
const updateProperty: {
|
|
7081
|
+
(node: PropertyDeclaration, modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7082
|
+
(node: PropertyDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7083
|
+
};
|
|
6997
7084
|
/** @deprecated Use `factory.createMethodDeclaration` or the factory supplied by your transformation context instead. */
|
|
6998
|
-
const createMethod:
|
|
7085
|
+
const createMethod: {
|
|
7086
|
+
(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;
|
|
7087
|
+
(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;
|
|
7088
|
+
};
|
|
6999
7089
|
/** @deprecated Use `factory.updateMethodDeclaration` or the factory supplied by your transformation context instead. */
|
|
7000
|
-
const updateMethod:
|
|
7090
|
+
const updateMethod: {
|
|
7091
|
+
(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;
|
|
7092
|
+
(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;
|
|
7093
|
+
};
|
|
7001
7094
|
/** @deprecated Use `factory.createConstructorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7002
|
-
const createConstructor:
|
|
7095
|
+
const createConstructor: {
|
|
7096
|
+
(modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7097
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7098
|
+
};
|
|
7003
7099
|
/** @deprecated Use `factory.updateConstructorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7004
|
-
const updateConstructor:
|
|
7100
|
+
const updateConstructor: {
|
|
7101
|
+
(node: ConstructorDeclaration, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7102
|
+
(node: ConstructorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7103
|
+
};
|
|
7005
7104
|
/** @deprecated Use `factory.createGetAccessorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7006
|
-
const createGetAccessor:
|
|
7105
|
+
const createGetAccessor: {
|
|
7106
|
+
(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7107
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7108
|
+
};
|
|
7007
7109
|
/** @deprecated Use `factory.updateGetAccessorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7008
|
-
const updateGetAccessor:
|
|
7110
|
+
const updateGetAccessor: {
|
|
7111
|
+
(node: GetAccessorDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7112
|
+
(node: GetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7113
|
+
};
|
|
7009
7114
|
/** @deprecated Use `factory.createSetAccessorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7010
|
-
const createSetAccessor:
|
|
7115
|
+
const createSetAccessor: {
|
|
7116
|
+
(modifiers: readonly ModifierLike[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7117
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7118
|
+
};
|
|
7011
7119
|
/** @deprecated Use `factory.updateSetAccessorDeclaration` or the factory supplied by your transformation context instead. */
|
|
7012
|
-
const updateSetAccessor:
|
|
7120
|
+
const updateSetAccessor: {
|
|
7121
|
+
(node: SetAccessorDeclaration, modifiers: readonly ModifierLike[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7122
|
+
(node: SetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
7123
|
+
};
|
|
7013
7124
|
/** @deprecated Use `factory.createCallSignature` or the factory supplied by your transformation context instead. */
|
|
7014
7125
|
const createCallSignature: (typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined) => CallSignatureDeclaration;
|
|
7015
7126
|
/** @deprecated Use `factory.updateCallSignature` or the factory supplied by your transformation context instead. */
|
|
@@ -7019,7 +7130,10 @@ declare namespace ts {
|
|
|
7019
7130
|
/** @deprecated Use `factory.updateConstructSignature` or the factory supplied by your transformation context instead. */
|
|
7020
7131
|
const updateConstructSignature: (node: ConstructSignatureDeclaration, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode | undefined) => ConstructSignatureDeclaration;
|
|
7021
7132
|
/** @deprecated Use `factory.updateIndexSignature` or the factory supplied by your transformation context instead. */
|
|
7022
|
-
const updateIndexSignature:
|
|
7133
|
+
const updateIndexSignature: {
|
|
7134
|
+
(node: IndexSignatureDeclaration, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
7135
|
+
(node: IndexSignatureDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
7136
|
+
};
|
|
7023
7137
|
/** @deprecated Use `factory.createKeywordTypeNode` or the factory supplied by your transformation context instead. */
|
|
7024
7138
|
const createKeywordTypeNode: <TKind extends KeywordTypeSyntaxKind>(kind: TKind) => KeywordTypeNode<TKind>;
|
|
7025
7139
|
/** @deprecated Use `factory.createTypePredicateNode` or the factory supplied by your transformation context instead. */
|
|
@@ -7080,13 +7194,14 @@ declare namespace ts {
|
|
|
7080
7194
|
const updateInferTypeNode: (node: InferTypeNode, typeParameter: TypeParameterDeclaration) => InferTypeNode;
|
|
7081
7195
|
/** @deprecated Use `factory.createImportTypeNode` or the factory supplied by your transformation context instead. */
|
|
7082
7196
|
const createImportTypeNode: {
|
|
7083
|
-
(argument: TypeNode, qualifier?: EntityName | undefined, typeArguments?: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7084
7197
|
(argument: TypeNode, assertions?: ImportTypeAssertionContainer | undefined, qualifier?: EntityName | undefined, typeArguments?: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7198
|
+
(argument: TypeNode, assertions?: ImportTypeAssertionContainer | undefined, qualifier?: EntityName | undefined, typeArguments?: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7199
|
+
(argument: TypeNode, qualifier?: EntityName | undefined, typeArguments?: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7085
7200
|
};
|
|
7086
7201
|
/** @deprecated Use `factory.updateImportTypeNode` or the factory supplied by your transformation context instead. */
|
|
7087
7202
|
const updateImportTypeNode: {
|
|
7088
|
-
(node: ImportTypeNode, argument: TypeNode, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7089
7203
|
(node: ImportTypeNode, argument: TypeNode, assertions: ImportTypeAssertionContainer | undefined, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7204
|
+
(node: ImportTypeNode, argument: TypeNode, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean | undefined): ImportTypeNode;
|
|
7090
7205
|
};
|
|
7091
7206
|
/** @deprecated Use `factory.createParenthesizedType` or the factory supplied by your transformation context instead. */
|
|
7092
7207
|
const createParenthesizedType: (type: TypeNode) => ParenthesizedTypeNode;
|
|
@@ -7331,29 +7446,65 @@ declare namespace ts {
|
|
|
7331
7446
|
/** @deprecated Use `factory.updateVariableDeclarationList` or the factory supplied by your transformation context instead. */
|
|
7332
7447
|
const updateVariableDeclarationList: (node: VariableDeclarationList, declarations: readonly VariableDeclaration[]) => VariableDeclarationList;
|
|
7333
7448
|
/** @deprecated Use `factory.createFunctionDeclaration` or the factory supplied by your transformation context instead. */
|
|
7334
|
-
const createFunctionDeclaration:
|
|
7449
|
+
const createFunctionDeclaration: {
|
|
7450
|
+
(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;
|
|
7451
|
+
(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;
|
|
7452
|
+
};
|
|
7335
7453
|
/** @deprecated Use `factory.updateFunctionDeclaration` or the factory supplied by your transformation context instead. */
|
|
7336
|
-
const updateFunctionDeclaration:
|
|
7454
|
+
const updateFunctionDeclaration: {
|
|
7455
|
+
(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;
|
|
7456
|
+
(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;
|
|
7457
|
+
};
|
|
7337
7458
|
/** @deprecated Use `factory.createClassDeclaration` or the factory supplied by your transformation context instead. */
|
|
7338
|
-
const createClassDeclaration:
|
|
7459
|
+
const createClassDeclaration: {
|
|
7460
|
+
(modifiers: readonly ModifierLike[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
7461
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
7462
|
+
};
|
|
7339
7463
|
/** @deprecated Use `factory.updateClassDeclaration` or the factory supplied by your transformation context instead. */
|
|
7340
|
-
const updateClassDeclaration:
|
|
7464
|
+
const updateClassDeclaration: {
|
|
7465
|
+
(node: ClassDeclaration, modifiers: readonly ModifierLike[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
|
|
7466
|
+
(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;
|
|
7467
|
+
};
|
|
7341
7468
|
/** @deprecated Use `factory.createInterfaceDeclaration` or the factory supplied by your transformation context instead. */
|
|
7342
|
-
const createInterfaceDeclaration:
|
|
7469
|
+
const createInterfaceDeclaration: {
|
|
7470
|
+
(modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7471
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7472
|
+
};
|
|
7343
7473
|
/** @deprecated Use `factory.updateInterfaceDeclaration` or the factory supplied by your transformation context instead. */
|
|
7344
|
-
const updateInterfaceDeclaration:
|
|
7474
|
+
const updateInterfaceDeclaration: {
|
|
7475
|
+
(node: InterfaceDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7476
|
+
(node: InterfaceDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
7477
|
+
};
|
|
7345
7478
|
/** @deprecated Use `factory.createTypeAliasDeclaration` or the factory supplied by your transformation context instead. */
|
|
7346
|
-
const createTypeAliasDeclaration:
|
|
7479
|
+
const createTypeAliasDeclaration: {
|
|
7480
|
+
(modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7481
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7482
|
+
};
|
|
7347
7483
|
/** @deprecated Use `factory.updateTypeAliasDeclaration` or the factory supplied by your transformation context instead. */
|
|
7348
|
-
const updateTypeAliasDeclaration:
|
|
7484
|
+
const updateTypeAliasDeclaration: {
|
|
7485
|
+
(node: TypeAliasDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7486
|
+
(node: TypeAliasDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
7487
|
+
};
|
|
7349
7488
|
/** @deprecated Use `factory.createEnumDeclaration` or the factory supplied by your transformation context instead. */
|
|
7350
|
-
const createEnumDeclaration:
|
|
7489
|
+
const createEnumDeclaration: {
|
|
7490
|
+
(modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7491
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7492
|
+
};
|
|
7351
7493
|
/** @deprecated Use `factory.updateEnumDeclaration` or the factory supplied by your transformation context instead. */
|
|
7352
|
-
const updateEnumDeclaration:
|
|
7494
|
+
const updateEnumDeclaration: {
|
|
7495
|
+
(node: EnumDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7496
|
+
(node: EnumDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
7497
|
+
};
|
|
7353
7498
|
/** @deprecated Use `factory.createModuleDeclaration` or the factory supplied by your transformation context instead. */
|
|
7354
|
-
const createModuleDeclaration:
|
|
7499
|
+
const createModuleDeclaration: {
|
|
7500
|
+
(modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags | undefined): ModuleDeclaration;
|
|
7501
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags | undefined): ModuleDeclaration;
|
|
7502
|
+
};
|
|
7355
7503
|
/** @deprecated Use `factory.updateModuleDeclaration` or the factory supplied by your transformation context instead. */
|
|
7356
|
-
const updateModuleDeclaration:
|
|
7504
|
+
const updateModuleDeclaration: {
|
|
7505
|
+
(node: ModuleDeclaration, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
7506
|
+
(node: ModuleDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
7507
|
+
};
|
|
7357
7508
|
/** @deprecated Use `factory.createModuleBlock` or the factory supplied by your transformation context instead. */
|
|
7358
7509
|
const createModuleBlock: (statements: readonly Statement[]) => ModuleBlock;
|
|
7359
7510
|
/** @deprecated Use `factory.updateModuleBlock` or the factory supplied by your transformation context instead. */
|
|
@@ -7367,13 +7518,25 @@ declare namespace ts {
|
|
|
7367
7518
|
/** @deprecated Use `factory.updateNamespaceExportDeclaration` or the factory supplied by your transformation context instead. */
|
|
7368
7519
|
const updateNamespaceExportDeclaration: (node: NamespaceExportDeclaration, name: Identifier) => NamespaceExportDeclaration;
|
|
7369
7520
|
/** @deprecated Use `factory.createImportEqualsDeclaration` or the factory supplied by your transformation context instead. */
|
|
7370
|
-
const createImportEqualsDeclaration:
|
|
7521
|
+
const createImportEqualsDeclaration: {
|
|
7522
|
+
(modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7523
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7524
|
+
};
|
|
7371
7525
|
/** @deprecated Use `factory.updateImportEqualsDeclaration` or the factory supplied by your transformation context instead. */
|
|
7372
|
-
const updateImportEqualsDeclaration:
|
|
7526
|
+
const updateImportEqualsDeclaration: {
|
|
7527
|
+
(node: ImportEqualsDeclaration, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7528
|
+
(node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7529
|
+
};
|
|
7373
7530
|
/** @deprecated Use `factory.createImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
7374
|
-
const createImportDeclaration:
|
|
7531
|
+
const createImportDeclaration: {
|
|
7532
|
+
(modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause | undefined): ImportDeclaration;
|
|
7533
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause | undefined): ImportDeclaration;
|
|
7534
|
+
};
|
|
7375
7535
|
/** @deprecated Use `factory.updateImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
7376
|
-
const updateImportDeclaration:
|
|
7536
|
+
const updateImportDeclaration: {
|
|
7537
|
+
(node: ImportDeclaration, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
7538
|
+
(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
7539
|
+
};
|
|
7377
7540
|
/** @deprecated Use `factory.createNamespaceImport` or the factory supplied by your transformation context instead. */
|
|
7378
7541
|
const createNamespaceImport: (name: Identifier) => NamespaceImport;
|
|
7379
7542
|
/** @deprecated Use `factory.updateNamespaceImport` or the factory supplied by your transformation context instead. */
|
|
@@ -7387,9 +7550,15 @@ declare namespace ts {
|
|
|
7387
7550
|
/** @deprecated Use `factory.updateImportSpecifier` or the factory supplied by your transformation context instead. */
|
|
7388
7551
|
const updateImportSpecifier: (node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier) => ImportSpecifier;
|
|
7389
7552
|
/** @deprecated Use `factory.createExportAssignment` or the factory supplied by your transformation context instead. */
|
|
7390
|
-
const createExportAssignment:
|
|
7553
|
+
const createExportAssignment: {
|
|
7554
|
+
(modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
7555
|
+
(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
7556
|
+
};
|
|
7391
7557
|
/** @deprecated Use `factory.updateExportAssignment` or the factory supplied by your transformation context instead. */
|
|
7392
|
-
const updateExportAssignment:
|
|
7558
|
+
const updateExportAssignment: {
|
|
7559
|
+
(node: ExportAssignment, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
7560
|
+
(node: ExportAssignment, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
7561
|
+
};
|
|
7393
7562
|
/** @deprecated Use `factory.createNamedExports` or the factory supplied by your transformation context instead. */
|
|
7394
7563
|
const createNamedExports: (elements: readonly ExportSpecifier[]) => NamedExports;
|
|
7395
7564
|
/** @deprecated Use `factory.updateNamedExports` or the factory supplied by your transformation context instead. */
|
|
@@ -7479,9 +7648,9 @@ declare namespace ts {
|
|
|
7479
7648
|
/** @deprecated Use `factory.updateJsxFragment` or the factory supplied by your transformation context instead. */
|
|
7480
7649
|
const updateJsxFragment: (node: JsxFragment, openingFragment: JsxOpeningFragment, children: readonly JsxChild[], closingFragment: JsxClosingFragment) => JsxFragment;
|
|
7481
7650
|
/** @deprecated Use `factory.createJsxAttribute` or the factory supplied by your transformation context instead. */
|
|
7482
|
-
const createJsxAttribute: (name: Identifier, initializer:
|
|
7651
|
+
const createJsxAttribute: (name: Identifier, initializer: JsxAttributeValue | undefined) => JsxAttribute;
|
|
7483
7652
|
/** @deprecated Use `factory.updateJsxAttribute` or the factory supplied by your transformation context instead. */
|
|
7484
|
-
const updateJsxAttribute: (node: JsxAttribute, name: Identifier, initializer:
|
|
7653
|
+
const updateJsxAttribute: (node: JsxAttribute, name: Identifier, initializer: JsxAttributeValue | undefined) => JsxAttribute;
|
|
7485
7654
|
/** @deprecated Use `factory.createJsxAttributes` or the factory supplied by your transformation context instead. */
|
|
7486
7655
|
const createJsxAttributes: (properties: readonly JsxAttributeLike[]) => JsxAttributes;
|
|
7487
7656
|
/** @deprecated Use `factory.updateJsxAttributes` or the factory supplied by your transformation context instead. */
|
|
@@ -7693,8 +7862,12 @@ declare namespace ts {
|
|
|
7693
7862
|
* @deprecated Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`.
|
|
7694
7863
|
*/
|
|
7695
7864
|
const getMutableClone: <T extends Node>(node: T) => T;
|
|
7865
|
+
}
|
|
7866
|
+
declare namespace ts {
|
|
7696
7867
|
/** @deprecated Use `isTypeAssertionExpression` instead. */
|
|
7697
7868
|
const isTypeAssertion: (node: Node) => node is TypeAssertion;
|
|
7869
|
+
}
|
|
7870
|
+
declare namespace ts {
|
|
7698
7871
|
/**
|
|
7699
7872
|
* @deprecated Use `ts.ReadonlyESMap<K, V>` instead.
|
|
7700
7873
|
*/
|
|
@@ -7705,10 +7878,297 @@ declare namespace ts {
|
|
|
7705
7878
|
*/
|
|
7706
7879
|
interface Map<T> extends ESMap<string, T> {
|
|
7707
7880
|
}
|
|
7881
|
+
}
|
|
7882
|
+
declare namespace ts {
|
|
7708
7883
|
/**
|
|
7709
7884
|
* @deprecated Use `isMemberName` instead.
|
|
7710
7885
|
*/
|
|
7711
7886
|
const isIdentifierOrPrivateIdentifier: (node: Node) => node is MemberName;
|
|
7712
7887
|
}
|
|
7888
|
+
declare namespace ts {
|
|
7889
|
+
interface NodeFactory {
|
|
7890
|
+
/** @deprecated Use the overload that accepts 'modifiers' */
|
|
7891
|
+
createConstructorTypeNode(typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): ConstructorTypeNode;
|
|
7892
|
+
/** @deprecated Use the overload that accepts 'modifiers' */
|
|
7893
|
+
updateConstructorTypeNode(node: ConstructorTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode): ConstructorTypeNode;
|
|
7894
|
+
}
|
|
7895
|
+
}
|
|
7896
|
+
declare namespace ts {
|
|
7897
|
+
interface NodeFactory {
|
|
7898
|
+
createImportTypeNode(argument: TypeNode, assertions?: ImportTypeAssertionContainer, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
|
|
7899
|
+
/** @deprecated Use the overload that accepts 'assertions' */
|
|
7900
|
+
createImportTypeNode(argument: TypeNode, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
|
|
7901
|
+
/** @deprecated Use the overload that accepts 'assertions' */
|
|
7902
|
+
updateImportTypeNode(node: ImportTypeNode, argument: TypeNode, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean): ImportTypeNode;
|
|
7903
|
+
}
|
|
7904
|
+
}
|
|
7905
|
+
declare namespace ts {
|
|
7906
|
+
interface NodeFactory {
|
|
7907
|
+
/** @deprecated Use the overload that accepts 'modifiers' */
|
|
7908
|
+
createTypeParameterDeclaration(name: string | Identifier, constraint?: TypeNode, defaultType?: TypeNode): TypeParameterDeclaration;
|
|
7909
|
+
/** @deprecated Use the overload that accepts 'modifiers' */
|
|
7910
|
+
updateTypeParameterDeclaration(node: TypeParameterDeclaration, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration;
|
|
7911
|
+
}
|
|
7912
|
+
}
|
|
7913
|
+
declare namespace ts {
|
|
7914
|
+
interface Node {
|
|
7915
|
+
/** @deprecated `decorators` has been merged with `modifiers` on the declarations that support decorators. */
|
|
7916
|
+
readonly decorators?: NodeArray<Decorator> | undefined;
|
|
7917
|
+
/** @deprecated `modifiers` has been removed from `Node` and moved to the specific `Node` subtypes that support them. */
|
|
7918
|
+
readonly modifiers?: NodeArray<ModifierLike> | undefined;
|
|
7919
|
+
}
|
|
7920
|
+
interface PropertySignature {
|
|
7921
|
+
/** @deprecated A property signature cannot have an initializer */
|
|
7922
|
+
readonly initializer?: Expression | undefined;
|
|
7923
|
+
}
|
|
7924
|
+
interface PropertyAssignment {
|
|
7925
|
+
/** @deprecated A property assignment cannot have a question token */
|
|
7926
|
+
readonly questionToken?: QuestionToken | undefined;
|
|
7927
|
+
/** @deprecated A property assignment cannot have an exclamation token */
|
|
7928
|
+
readonly exclamationToken?: ExclamationToken | undefined;
|
|
7929
|
+
}
|
|
7930
|
+
interface ShorthandPropertyAssignment {
|
|
7931
|
+
/** @deprecated A shorthand property assignment cannot have modifiers */
|
|
7932
|
+
readonly modifiers?: NodeArray<Modifier> | undefined;
|
|
7933
|
+
/** @deprecated A shorthand property assignment cannot have a question token */
|
|
7934
|
+
readonly questionToken?: QuestionToken | undefined;
|
|
7935
|
+
/** @deprecated A shorthand property assignment cannot have an exclamation token */
|
|
7936
|
+
readonly exclamationToken?: ExclamationToken | undefined;
|
|
7937
|
+
}
|
|
7938
|
+
interface FunctionTypeNode {
|
|
7939
|
+
/** @deprecated A function type cannot have modifiers */
|
|
7940
|
+
readonly modifiers?: NodeArray<Modifier> | undefined;
|
|
7941
|
+
}
|
|
7942
|
+
interface NodeFactory {
|
|
7943
|
+
/**
|
|
7944
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7945
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7946
|
+
* an overload that removes the parameter entirely.
|
|
7947
|
+
*/
|
|
7948
|
+
createParameterDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration;
|
|
7949
|
+
/**
|
|
7950
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7951
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7952
|
+
* an overload that removes the parameter entirely.
|
|
7953
|
+
*/
|
|
7954
|
+
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;
|
|
7955
|
+
/**
|
|
7956
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7957
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7958
|
+
* an overload that removes the parameter entirely.
|
|
7959
|
+
*/
|
|
7960
|
+
createPropertyDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
7961
|
+
/**
|
|
7962
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7963
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7964
|
+
* an overload that removes the parameter entirely.
|
|
7965
|
+
*/
|
|
7966
|
+
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;
|
|
7967
|
+
/**
|
|
7968
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7969
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7970
|
+
* an overload that removes the parameter entirely.
|
|
7971
|
+
*/
|
|
7972
|
+
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;
|
|
7973
|
+
/**
|
|
7974
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7975
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7976
|
+
* an overload that removes the parameter entirely.
|
|
7977
|
+
*/
|
|
7978
|
+
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;
|
|
7979
|
+
/**
|
|
7980
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7981
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7982
|
+
* an overload that removes the parameter entirely.
|
|
7983
|
+
*/
|
|
7984
|
+
createConstructorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7985
|
+
/**
|
|
7986
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7987
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7988
|
+
* an overload that removes the parameter entirely.
|
|
7989
|
+
*/
|
|
7990
|
+
updateConstructorDeclaration(node: ConstructorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
7991
|
+
/**
|
|
7992
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7993
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
7994
|
+
* an overload that removes the parameter entirely.
|
|
7995
|
+
*/
|
|
7996
|
+
createGetAccessorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
7997
|
+
/**
|
|
7998
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
7999
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8000
|
+
* an overload that removes the parameter entirely.
|
|
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 pass
|
|
8005
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8006
|
+
* an overload that removes the parameter entirely.
|
|
8007
|
+
*/
|
|
8008
|
+
createSetAccessorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
8009
|
+
/**
|
|
8010
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8011
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8012
|
+
* an overload that removes the parameter entirely.
|
|
8013
|
+
*/
|
|
8014
|
+
updateSetAccessorDeclaration(node: SetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
8015
|
+
/**
|
|
8016
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8017
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8018
|
+
* an overload that removes the parameter entirely.
|
|
8019
|
+
*/
|
|
8020
|
+
createIndexSignature(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
8021
|
+
/**
|
|
8022
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8023
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8024
|
+
* an overload that removes the parameter entirely.
|
|
8025
|
+
*/
|
|
8026
|
+
updateIndexSignature(node: IndexSignatureDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
8027
|
+
/**
|
|
8028
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8029
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8030
|
+
* an overload that removes the parameter entirely.
|
|
8031
|
+
*/
|
|
8032
|
+
createClassStaticBlockDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, body: Block): ClassStaticBlockDeclaration;
|
|
8033
|
+
/**
|
|
8034
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8035
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8036
|
+
* an overload that removes the parameter entirely.
|
|
8037
|
+
*/
|
|
8038
|
+
updateClassStaticBlockDeclaration(node: ClassStaticBlockDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, body: Block): ClassStaticBlockDeclaration;
|
|
8039
|
+
/**
|
|
8040
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8041
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8042
|
+
* an overload that removes the parameter entirely.
|
|
8043
|
+
*/
|
|
8044
|
+
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;
|
|
8045
|
+
/**
|
|
8046
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8047
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8048
|
+
* an overload that removes the parameter entirely.
|
|
8049
|
+
*/
|
|
8050
|
+
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;
|
|
8051
|
+
/**
|
|
8052
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8053
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8054
|
+
* an overload that removes the parameter entirely.
|
|
8055
|
+
*/
|
|
8056
|
+
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;
|
|
8057
|
+
/**
|
|
8058
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8059
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8060
|
+
* an overload that removes the parameter entirely.
|
|
8061
|
+
*/
|
|
8062
|
+
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;
|
|
8063
|
+
/**
|
|
8064
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8065
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8066
|
+
* an overload that removes the parameter entirely.
|
|
8067
|
+
*/
|
|
8068
|
+
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;
|
|
8069
|
+
/**
|
|
8070
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8071
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8072
|
+
* an overload that removes the parameter entirely.
|
|
8073
|
+
*/
|
|
8074
|
+
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;
|
|
8075
|
+
/**
|
|
8076
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8077
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8078
|
+
* an overload that removes the parameter entirely.
|
|
8079
|
+
*/
|
|
8080
|
+
createInterfaceDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
8081
|
+
/**
|
|
8082
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8083
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8084
|
+
* an overload that removes the parameter entirely.
|
|
8085
|
+
*/
|
|
8086
|
+
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;
|
|
8087
|
+
/**
|
|
8088
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8089
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8090
|
+
* an overload that removes the parameter entirely.
|
|
8091
|
+
*/
|
|
8092
|
+
createTypeAliasDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
8093
|
+
/**
|
|
8094
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8095
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8096
|
+
* an overload that removes the parameter entirely.
|
|
8097
|
+
*/
|
|
8098
|
+
updateTypeAliasDeclaration(node: TypeAliasDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
8099
|
+
/**
|
|
8100
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8101
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8102
|
+
* an overload that removes the parameter entirely.
|
|
8103
|
+
*/
|
|
8104
|
+
createEnumDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
8105
|
+
/**
|
|
8106
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8107
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8108
|
+
* an overload that removes the parameter entirely.
|
|
8109
|
+
*/
|
|
8110
|
+
updateEnumDeclaration(node: EnumDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
8111
|
+
/**
|
|
8112
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8113
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8114
|
+
* an overload that removes the parameter entirely.
|
|
8115
|
+
*/
|
|
8116
|
+
createModuleDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags): ModuleDeclaration;
|
|
8117
|
+
/**
|
|
8118
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8119
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8120
|
+
* an overload that removes the parameter entirely.
|
|
8121
|
+
*/
|
|
8122
|
+
updateModuleDeclaration(node: ModuleDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
8123
|
+
/**
|
|
8124
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8125
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8126
|
+
* an overload that removes the parameter entirely.
|
|
8127
|
+
*/
|
|
8128
|
+
createImportEqualsDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
8129
|
+
/**
|
|
8130
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8131
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8132
|
+
* an overload that removes the parameter entirely.
|
|
8133
|
+
*/
|
|
8134
|
+
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
8135
|
+
/**
|
|
8136
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8137
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8138
|
+
* an overload that removes the parameter entirely.
|
|
8139
|
+
*/
|
|
8140
|
+
createImportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
|
|
8141
|
+
/**
|
|
8142
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8143
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8144
|
+
* an overload that removes the parameter entirely.
|
|
8145
|
+
*/
|
|
8146
|
+
updateImportDeclaration(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
8147
|
+
/**
|
|
8148
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8149
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8150
|
+
* an overload that removes the parameter entirely.
|
|
8151
|
+
*/
|
|
8152
|
+
createExportAssignment(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
8153
|
+
/**
|
|
8154
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8155
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8156
|
+
* an overload that removes the parameter entirely.
|
|
8157
|
+
*/
|
|
8158
|
+
updateExportAssignment(node: ExportAssignment, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
8159
|
+
/**
|
|
8160
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8161
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8162
|
+
* an overload that removes the parameter entirely.
|
|
8163
|
+
*/
|
|
8164
|
+
createExportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
|
|
8165
|
+
/**
|
|
8166
|
+
* @deprecated Decorators have been combined with modifiers. Callers should pass
|
|
8167
|
+
* `null` to the `decorators` parameter so that a future update can introduce
|
|
8168
|
+
* an overload that removes the parameter entirely.
|
|
8169
|
+
*/
|
|
8170
|
+
updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
|
|
8171
|
+
}
|
|
8172
|
+
}
|
|
7713
8173
|
|
|
7714
8174
|
export = ts;
|