@typescript-deploys/pr-build 4.6.0-pr-47550-2 → 4.6.0-pr-47607-13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/fr/diagnosticMessages.generated.json +17 -4
- package/lib/ja/diagnosticMessages.generated.json +17 -4
- package/lib/ko/diagnosticMessages.generated.json +17 -4
- package/lib/lib.dom.d.ts +73 -1
- package/lib/lib.dom.iterable.d.ts +4 -0
- package/lib/lib.webworker.d.ts +48 -0
- package/lib/pl/diagnosticMessages.generated.json +17 -4
- package/lib/ru/diagnosticMessages.generated.json +17 -4
- package/lib/tr/diagnosticMessages.generated.json +17 -4
- package/lib/tsc.js +326 -192
- package/lib/tsserver.js +640 -302
- package/lib/tsserverlibrary.d.ts +16 -12
- package/lib/tsserverlibrary.js +640 -302
- package/lib/typescript.d.ts +16 -12
- package/lib/typescript.js +640 -302
- package/lib/typescriptServices.d.ts +16 -12
- package/lib/typescriptServices.js +640 -302
- package/lib/typingsInstaller.js +345 -221
- package/lib/zh-tw/diagnosticMessages.generated.json +17 -4
- package/package.json +1 -1
package/lib/typescript.d.ts
CHANGED
|
@@ -572,7 +572,7 @@ declare namespace ts {
|
|
|
572
572
|
}
|
|
573
573
|
export interface JSDocContainer {
|
|
574
574
|
}
|
|
575
|
-
export type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ClassStaticBlockDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | EmptyStatement | DebuggerStatement | Block | VariableStatement | ExpressionStatement | IfStatement | DoStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | BreakStatement | ContinueStatement | ReturnStatement | WithStatement | SwitchStatement | LabeledStatement | ThrowStatement | TryStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | VariableDeclaration | PropertyDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | NamespaceExportDeclaration | ExportAssignment | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | EndOfFileToken;
|
|
575
|
+
export type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ClassStaticBlockDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | EmptyStatement | DebuggerStatement | Block | VariableStatement | ExpressionStatement | IfStatement | DoStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | BreakStatement | ContinueStatement | ReturnStatement | WithStatement | SwitchStatement | LabeledStatement | ThrowStatement | TryStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | VariableDeclaration | PropertyDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | NamespaceExportDeclaration | ExportAssignment | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | ExportSpecifier | EndOfFileToken;
|
|
576
576
|
export type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType;
|
|
577
577
|
export type HasTypeArguments = CallExpression | NewExpression | TaggedTemplateExpression | JsxOpeningElement | JsxSelfClosingElement;
|
|
578
578
|
export type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute;
|
|
@@ -901,7 +901,7 @@ declare namespace ts {
|
|
|
901
901
|
readonly parameterName: Identifier | ThisTypeNode;
|
|
902
902
|
readonly type?: TypeNode;
|
|
903
903
|
}
|
|
904
|
-
export interface TypeQueryNode extends
|
|
904
|
+
export interface TypeQueryNode extends NodeWithTypeArguments {
|
|
905
905
|
readonly kind: SyntaxKind.TypeQuery;
|
|
906
906
|
readonly exprName: EntityName;
|
|
907
907
|
}
|
|
@@ -1285,9 +1285,8 @@ declare namespace ts {
|
|
|
1285
1285
|
export interface ImportCall extends CallExpression {
|
|
1286
1286
|
readonly expression: ImportExpression;
|
|
1287
1287
|
}
|
|
1288
|
-
export interface ExpressionWithTypeArguments extends NodeWithTypeArguments {
|
|
1288
|
+
export interface ExpressionWithTypeArguments extends LeftHandSideExpression, NodeWithTypeArguments {
|
|
1289
1289
|
readonly kind: SyntaxKind.ExpressionWithTypeArguments;
|
|
1290
|
-
readonly parent: HeritageClause | JSDocAugmentsTag | JSDocImplementsTag;
|
|
1291
1290
|
readonly expression: LeftHandSideExpression;
|
|
1292
1291
|
}
|
|
1293
1292
|
export interface NewExpression extends PrimaryExpression, Declaration {
|
|
@@ -1702,7 +1701,7 @@ declare namespace ts {
|
|
|
1702
1701
|
readonly name: Identifier;
|
|
1703
1702
|
readonly isTypeOnly: boolean;
|
|
1704
1703
|
}
|
|
1705
|
-
export interface ExportSpecifier extends NamedDeclaration {
|
|
1704
|
+
export interface ExportSpecifier extends NamedDeclaration, JSDocContainer {
|
|
1706
1705
|
readonly kind: SyntaxKind.ExportSpecifier;
|
|
1707
1706
|
readonly parent: NamedExports;
|
|
1708
1707
|
readonly isTypeOnly: boolean;
|
|
@@ -1720,19 +1719,23 @@ declare namespace ts {
|
|
|
1720
1719
|
readonly parent: ImportClause & {
|
|
1721
1720
|
readonly isTypeOnly: true;
|
|
1722
1721
|
};
|
|
1723
|
-
} | ImportSpecifier & {
|
|
1722
|
+
} | ImportSpecifier & ({
|
|
1723
|
+
readonly isTypeOnly: true;
|
|
1724
|
+
} | {
|
|
1724
1725
|
readonly parent: NamedImports & {
|
|
1725
1726
|
readonly parent: ImportClause & {
|
|
1726
1727
|
readonly isTypeOnly: true;
|
|
1727
1728
|
};
|
|
1728
1729
|
};
|
|
1729
|
-
} | ExportSpecifier & {
|
|
1730
|
+
}) | ExportSpecifier & ({
|
|
1731
|
+
readonly isTypeOnly: true;
|
|
1732
|
+
} | {
|
|
1730
1733
|
readonly parent: NamedExports & {
|
|
1731
1734
|
readonly parent: ExportDeclaration & {
|
|
1732
1735
|
readonly isTypeOnly: true;
|
|
1733
1736
|
};
|
|
1734
1737
|
};
|
|
1735
|
-
};
|
|
1738
|
+
});
|
|
1736
1739
|
/**
|
|
1737
1740
|
* This is either an `export =` or an `export default` declaration.
|
|
1738
1741
|
* Unless `isExportEquals` is set, this node was parsed as an `export default`.
|
|
@@ -2657,6 +2660,7 @@ declare namespace ts {
|
|
|
2657
2660
|
ClassOrInterface = 3,
|
|
2658
2661
|
ContainsSpread = 4194304,
|
|
2659
2662
|
ObjectRestType = 8388608,
|
|
2663
|
+
InstantiationExpressionType = 16777216,
|
|
2660
2664
|
}
|
|
2661
2665
|
export interface ObjectType extends Type {
|
|
2662
2666
|
objectFlags: ObjectFlags;
|
|
@@ -3392,8 +3396,8 @@ declare namespace ts {
|
|
|
3392
3396
|
updateConstructorTypeNode(node: ConstructorTypeNode, modifiers: readonly Modifier[] | undefined, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode): ConstructorTypeNode;
|
|
3393
3397
|
/** @deprecated */
|
|
3394
3398
|
updateConstructorTypeNode(node: ConstructorTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode): ConstructorTypeNode;
|
|
3395
|
-
createTypeQueryNode(exprName: EntityName): TypeQueryNode;
|
|
3396
|
-
updateTypeQueryNode(node: TypeQueryNode, exprName: EntityName): TypeQueryNode;
|
|
3399
|
+
createTypeQueryNode(exprName: EntityName, typeArguments?: readonly TypeNode[]): TypeQueryNode;
|
|
3400
|
+
updateTypeQueryNode(node: TypeQueryNode, exprName: EntityName, typeArguments?: readonly TypeNode[]): TypeQueryNode;
|
|
3397
3401
|
createTypeLiteralNode(members: readonly TypeElement[] | undefined): TypeLiteralNode;
|
|
3398
3402
|
updateTypeLiteralNode(node: TypeLiteralNode, members: NodeArray<TypeElement>): TypeLiteralNode;
|
|
3399
3403
|
createArrayTypeNode(elementType: TypeNode): ArrayTypeNode;
|
|
@@ -6934,9 +6938,9 @@ declare namespace ts {
|
|
|
6934
6938
|
/** @deprecated Use `factory.updateConstructorTypeNode` or the factory supplied by your transformation context instead. */
|
|
6935
6939
|
const updateConstructorTypeNode: (node: ConstructorTypeNode, typeParameters: NodeArray<TypeParameterDeclaration> | undefined, parameters: NodeArray<ParameterDeclaration>, type: TypeNode) => ConstructorTypeNode;
|
|
6936
6940
|
/** @deprecated Use `factory.createTypeQueryNode` or the factory supplied by your transformation context instead. */
|
|
6937
|
-
const createTypeQueryNode: (exprName: EntityName) => TypeQueryNode;
|
|
6941
|
+
const createTypeQueryNode: (exprName: EntityName, typeArguments?: readonly TypeNode[] | undefined) => TypeQueryNode;
|
|
6938
6942
|
/** @deprecated Use `factory.updateTypeQueryNode` or the factory supplied by your transformation context instead. */
|
|
6939
|
-
const updateTypeQueryNode: (node: TypeQueryNode, exprName: EntityName) => TypeQueryNode;
|
|
6943
|
+
const updateTypeQueryNode: (node: TypeQueryNode, exprName: EntityName, typeArguments?: readonly TypeNode[] | undefined) => TypeQueryNode;
|
|
6940
6944
|
/** @deprecated Use `factory.createTypeLiteralNode` or the factory supplied by your transformation context instead. */
|
|
6941
6945
|
const createTypeLiteralNode: (members: readonly TypeElement[] | undefined) => TypeLiteralNode;
|
|
6942
6946
|
/** @deprecated Use `factory.updateTypeLiteralNode` or the factory supplied by your transformation context instead. */
|