typescript 4.7.0-dev.20220405 → 4.7.0-dev.20220406
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/lib.dom.d.ts +404 -31
- package/lib/lib.dom.iterable.d.ts +16 -3
- package/lib/lib.es2020.intl.d.ts +15 -13
- package/lib/lib.es2021.intl.d.ts +102 -0
- package/lib/lib.es5.d.ts +1 -1
- package/lib/lib.webworker.d.ts +110 -25
- package/lib/lib.webworker.iterable.d.ts +3 -3
- package/lib/protocol.d.ts +5 -2
- package/lib/tsc.js +436 -228
- package/lib/tsserver.js +677 -296
- package/lib/tsserverlibrary.d.ts +21 -13
- package/lib/tsserverlibrary.js +677 -296
- package/lib/typescript.d.ts +16 -11
- package/lib/typescript.js +673 -296
- package/lib/typescriptServices.d.ts +16 -11
- package/lib/typescriptServices.js +673 -296
- package/lib/typingsInstaller.js +581 -264
- package/package.json +1 -1
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -523,16 +523,17 @@ declare namespace ts {
|
|
|
523
523
|
YieldContext = 8192,
|
|
524
524
|
DecoratorContext = 16384,
|
|
525
525
|
AwaitContext = 32768,
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
526
|
+
DisallowConditionalTypesContext = 65536,
|
|
527
|
+
ThisNodeHasError = 131072,
|
|
528
|
+
JavaScriptFile = 262144,
|
|
529
|
+
ThisNodeOrAnySubNodesHasError = 524288,
|
|
530
|
+
HasAggregatedChildData = 1048576,
|
|
531
|
+
JSDoc = 8388608,
|
|
532
|
+
JsonFile = 67108864,
|
|
532
533
|
BlockScoped = 3,
|
|
533
534
|
ReachabilityCheckFlags = 768,
|
|
534
535
|
ReachabilityAndEmitFlags = 2816,
|
|
535
|
-
ContextFlags =
|
|
536
|
+
ContextFlags = 50720768,
|
|
536
537
|
TypeExcludesFlags = 40960,
|
|
537
538
|
}
|
|
538
539
|
export enum ModifierFlags {
|
|
@@ -1805,10 +1806,12 @@ declare namespace ts {
|
|
|
1805
1806
|
export interface JSDocNonNullableType extends JSDocType {
|
|
1806
1807
|
readonly kind: SyntaxKind.JSDocNonNullableType;
|
|
1807
1808
|
readonly type: TypeNode;
|
|
1809
|
+
readonly postfix: boolean;
|
|
1808
1810
|
}
|
|
1809
1811
|
export interface JSDocNullableType extends JSDocType {
|
|
1810
1812
|
readonly kind: SyntaxKind.JSDocNullableType;
|
|
1811
1813
|
readonly type: TypeNode;
|
|
1814
|
+
readonly postfix: boolean;
|
|
1812
1815
|
}
|
|
1813
1816
|
export interface JSDocOptionalType extends JSDocType {
|
|
1814
1817
|
readonly kind: SyntaxKind.JSDocOptionalType;
|
|
@@ -3654,9 +3657,9 @@ declare namespace ts {
|
|
|
3654
3657
|
updateExternalModuleReference(node: ExternalModuleReference, expression: Expression): ExternalModuleReference;
|
|
3655
3658
|
createJSDocAllType(): JSDocAllType;
|
|
3656
3659
|
createJSDocUnknownType(): JSDocUnknownType;
|
|
3657
|
-
createJSDocNonNullableType(type: TypeNode): JSDocNonNullableType;
|
|
3660
|
+
createJSDocNonNullableType(type: TypeNode, postfix?: boolean): JSDocNonNullableType;
|
|
3658
3661
|
updateJSDocNonNullableType(node: JSDocNonNullableType, type: TypeNode): JSDocNonNullableType;
|
|
3659
|
-
createJSDocNullableType(type: TypeNode): JSDocNullableType;
|
|
3662
|
+
createJSDocNullableType(type: TypeNode, postfix?: boolean): JSDocNullableType;
|
|
3660
3663
|
updateJSDocNullableType(node: JSDocNullableType, type: TypeNode): JSDocNullableType;
|
|
3661
3664
|
createJSDocOptionalType(type: TypeNode): JSDocOptionalType;
|
|
3662
3665
|
updateJSDocOptionalType(node: JSDocOptionalType, type: TypeNode): JSDocOptionalType;
|
|
@@ -6206,7 +6209,6 @@ declare namespace ts {
|
|
|
6206
6209
|
}
|
|
6207
6210
|
interface ReferenceEntry extends DocumentSpan {
|
|
6208
6211
|
isWriteAccess: boolean;
|
|
6209
|
-
isDefinition: boolean;
|
|
6210
6212
|
isInString?: true;
|
|
6211
6213
|
}
|
|
6212
6214
|
interface ImplementationLocation extends DocumentSpan {
|
|
@@ -6320,7 +6322,10 @@ declare namespace ts {
|
|
|
6320
6322
|
}
|
|
6321
6323
|
interface ReferencedSymbol {
|
|
6322
6324
|
definition: ReferencedSymbolDefinitionInfo;
|
|
6323
|
-
references:
|
|
6325
|
+
references: ReferencedSymbolEntry[];
|
|
6326
|
+
}
|
|
6327
|
+
interface ReferencedSymbolEntry extends ReferenceEntry {
|
|
6328
|
+
isDefinition?: boolean;
|
|
6324
6329
|
}
|
|
6325
6330
|
enum SymbolDisplayPartKind {
|
|
6326
6331
|
aliasName = 0,
|
|
@@ -7852,9 +7857,12 @@ declare namespace ts.server.protocol {
|
|
|
7852
7857
|
*/
|
|
7853
7858
|
isWriteAccess: boolean;
|
|
7854
7859
|
/**
|
|
7855
|
-
*
|
|
7860
|
+
* Present only if the search was triggered from a declaration.
|
|
7861
|
+
* True indicates that the references refers to the same symbol
|
|
7862
|
+
* (i.e. has the same meaning) as the declaration that began the
|
|
7863
|
+
* search.
|
|
7856
7864
|
*/
|
|
7857
|
-
isDefinition
|
|
7865
|
+
isDefinition?: boolean;
|
|
7858
7866
|
}
|
|
7859
7867
|
/**
|
|
7860
7868
|
* The body of a "references" response message.
|