@typescript-deploys/pr-build 4.7.0-pr-48168-33 → 4.7.0-pr-48788-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cs/diagnosticMessages.generated.json +8 -1
- package/lib/de/diagnosticMessages.generated.json +8 -1
- package/lib/es/diagnosticMessages.generated.json +8 -1
- package/lib/fr/diagnosticMessages.generated.json +8 -1
- package/lib/it/diagnosticMessages.generated.json +8 -1
- package/lib/ja/diagnosticMessages.generated.json +8 -1
- package/lib/ko/diagnosticMessages.generated.json +8 -1
- 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/pl/diagnosticMessages.generated.json +8 -1
- package/lib/protocol.d.ts +39 -2
- package/lib/pt-br/diagnosticMessages.generated.json +8 -1
- package/lib/ru/diagnosticMessages.generated.json +8 -1
- package/lib/tr/diagnosticMessages.generated.json +8 -1
- package/lib/tsc.js +1363 -990
- package/lib/tsserver.js +2485 -1515
- package/lib/tsserverlibrary.d.ts +67 -17
- package/lib/tsserverlibrary.js +2485 -1515
- package/lib/typescript.d.ts +25 -14
- package/lib/typescript.js +2222 -1493
- package/lib/typescriptServices.d.ts +25 -14
- package/lib/typescriptServices.js +2222 -1493
- package/lib/typingsInstaller.js +1660 -1145
- package/lib/zh-cn/diagnosticMessages.generated.json +8 -1
- package/lib/zh-tw/diagnosticMessages.generated.json +8 -1
- 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;
|
|
@@ -1983,7 +1986,7 @@ declare namespace ts {
|
|
|
1983
1986
|
Label = 12,
|
|
1984
1987
|
Condition = 96
|
|
1985
1988
|
}
|
|
1986
|
-
export type FlowNode = FlowStart | FlowLabel | FlowAssignment |
|
|
1989
|
+
export type FlowNode = FlowStart | FlowLabel | FlowAssignment | FlowCondition | FlowSwitchClause | FlowArrayMutation | FlowCall | FlowReduceLabel;
|
|
1987
1990
|
export interface FlowNodeBase {
|
|
1988
1991
|
flags: FlowFlags;
|
|
1989
1992
|
id?: number;
|
|
@@ -2391,7 +2394,6 @@ declare namespace ts {
|
|
|
2391
2394
|
UseAliasDefinedOutsideCurrentScope = 16384,
|
|
2392
2395
|
UseSingleQuotesForStringLiteralType = 268435456,
|
|
2393
2396
|
NoTypeReduction = 536870912,
|
|
2394
|
-
NoUndefinedOptionalParameterType = 1073741824,
|
|
2395
2397
|
AllowThisInObjectLiteral = 32768,
|
|
2396
2398
|
AllowQualifiedNameInPlaceOfIdentifier = 65536,
|
|
2397
2399
|
/** @deprecated AllowQualifedNameInPlaceOfIdentifier. Use AllowQualifiedNameInPlaceOfIdentifier instead. */
|
|
@@ -2977,6 +2979,7 @@ declare namespace ts {
|
|
|
2977
2979
|
maxNodeModuleJsDepth?: number;
|
|
2978
2980
|
module?: ModuleKind;
|
|
2979
2981
|
moduleResolution?: ModuleResolutionKind;
|
|
2982
|
+
moduleSuffixes?: string[];
|
|
2980
2983
|
moduleDetection?: ModuleDetectionKind;
|
|
2981
2984
|
newLine?: NewLineKind;
|
|
2982
2985
|
noEmit?: boolean;
|
|
@@ -3163,7 +3166,7 @@ declare namespace ts {
|
|
|
3163
3166
|
realpath?(path: string): string;
|
|
3164
3167
|
getCurrentDirectory?(): string;
|
|
3165
3168
|
getDirectories?(path: string): string[];
|
|
3166
|
-
useCaseSensitiveFileNames?: boolean | (() => boolean);
|
|
3169
|
+
useCaseSensitiveFileNames?: boolean | (() => boolean) | undefined;
|
|
3167
3170
|
}
|
|
3168
3171
|
/**
|
|
3169
3172
|
* Used by services to specify the minimum host area required to set up source files under any compilation settings
|
|
@@ -3653,9 +3656,9 @@ declare namespace ts {
|
|
|
3653
3656
|
updateExternalModuleReference(node: ExternalModuleReference, expression: Expression): ExternalModuleReference;
|
|
3654
3657
|
createJSDocAllType(): JSDocAllType;
|
|
3655
3658
|
createJSDocUnknownType(): JSDocUnknownType;
|
|
3656
|
-
createJSDocNonNullableType(type: TypeNode): JSDocNonNullableType;
|
|
3659
|
+
createJSDocNonNullableType(type: TypeNode, postfix?: boolean): JSDocNonNullableType;
|
|
3657
3660
|
updateJSDocNonNullableType(node: JSDocNonNullableType, type: TypeNode): JSDocNonNullableType;
|
|
3658
|
-
createJSDocNullableType(type: TypeNode): JSDocNullableType;
|
|
3661
|
+
createJSDocNullableType(type: TypeNode, postfix?: boolean): JSDocNullableType;
|
|
3659
3662
|
updateJSDocNullableType(node: JSDocNullableType, type: TypeNode): JSDocNullableType;
|
|
3660
3663
|
createJSDocOptionalType(type: TypeNode): JSDocOptionalType;
|
|
3661
3664
|
updateJSDocOptionalType(node: JSDocOptionalType, type: TypeNode): JSDocOptionalType;
|
|
@@ -4100,6 +4103,7 @@ declare namespace ts {
|
|
|
4100
4103
|
readonly includeCompletionsWithInsertText?: boolean;
|
|
4101
4104
|
readonly includeCompletionsWithClassMemberSnippets?: boolean;
|
|
4102
4105
|
readonly includeCompletionsWithObjectLiteralMethodSnippets?: boolean;
|
|
4106
|
+
readonly useLabelDetailsInCompletionEntries?: boolean;
|
|
4103
4107
|
readonly allowIncompleteCompletions?: boolean;
|
|
4104
4108
|
readonly importModuleSpecifierPreference?: "shortest" | "project-relative" | "relative" | "non-relative";
|
|
4105
4109
|
/** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */
|
|
@@ -6204,7 +6208,6 @@ declare namespace ts {
|
|
|
6204
6208
|
}
|
|
6205
6209
|
interface ReferenceEntry extends DocumentSpan {
|
|
6206
6210
|
isWriteAccess: boolean;
|
|
6207
|
-
isDefinition: boolean;
|
|
6208
6211
|
isInString?: true;
|
|
6209
6212
|
}
|
|
6210
6213
|
interface ImplementationLocation extends DocumentSpan {
|
|
@@ -6318,7 +6321,10 @@ declare namespace ts {
|
|
|
6318
6321
|
}
|
|
6319
6322
|
interface ReferencedSymbol {
|
|
6320
6323
|
definition: ReferencedSymbolDefinitionInfo;
|
|
6321
|
-
references:
|
|
6324
|
+
references: ReferencedSymbolEntry[];
|
|
6325
|
+
}
|
|
6326
|
+
interface ReferencedSymbolEntry extends ReferenceEntry {
|
|
6327
|
+
isDefinition?: boolean;
|
|
6322
6328
|
}
|
|
6323
6329
|
enum SymbolDisplayPartKind {
|
|
6324
6330
|
aliasName = 0,
|
|
@@ -6485,6 +6491,7 @@ declare namespace ts {
|
|
|
6485
6491
|
hasAction?: true;
|
|
6486
6492
|
source?: string;
|
|
6487
6493
|
sourceDisplay?: SymbolDisplayPart[];
|
|
6494
|
+
labelDetails?: CompletionEntryLabelDetails;
|
|
6488
6495
|
isRecommended?: true;
|
|
6489
6496
|
isFromUncheckedFile?: true;
|
|
6490
6497
|
isPackageJsonImport?: true;
|
|
@@ -6499,6 +6506,10 @@ declare namespace ts {
|
|
|
6499
6506
|
*/
|
|
6500
6507
|
data?: CompletionEntryData;
|
|
6501
6508
|
}
|
|
6509
|
+
interface CompletionEntryLabelDetails {
|
|
6510
|
+
detail?: string;
|
|
6511
|
+
description?: string;
|
|
6512
|
+
}
|
|
6502
6513
|
interface CompletionEntryDetails {
|
|
6503
6514
|
name: string;
|
|
6504
6515
|
kind: ScriptElementKind;
|
|
@@ -7027,6 +7038,7 @@ declare namespace ts.server.protocol {
|
|
|
7027
7038
|
Rename = "rename",
|
|
7028
7039
|
Saveto = "saveto",
|
|
7029
7040
|
SignatureHelp = "signatureHelp",
|
|
7041
|
+
FindSourceDefinition = "findSourceDefinition",
|
|
7030
7042
|
Status = "status",
|
|
7031
7043
|
TypeDefinition = "typeDefinition",
|
|
7032
7044
|
ProjectInfo = "projectInfo",
|
|
@@ -7646,6 +7658,9 @@ declare namespace ts.server.protocol {
|
|
|
7646
7658
|
interface DefinitionAndBoundSpanRequest extends FileLocationRequest {
|
|
7647
7659
|
readonly command: CommandTypes.DefinitionAndBoundSpan;
|
|
7648
7660
|
}
|
|
7661
|
+
interface FindSourceDefinitionRequest extends FileLocationRequest {
|
|
7662
|
+
readonly command: CommandTypes.FindSourceDefinition;
|
|
7663
|
+
}
|
|
7649
7664
|
interface DefinitionAndBoundSpanResponse extends Response {
|
|
7650
7665
|
readonly body: DefinitionInfoAndBoundSpan;
|
|
7651
7666
|
}
|
|
@@ -7845,9 +7860,12 @@ declare namespace ts.server.protocol {
|
|
|
7845
7860
|
*/
|
|
7846
7861
|
isWriteAccess: boolean;
|
|
7847
7862
|
/**
|
|
7848
|
-
*
|
|
7863
|
+
* Present only if the search was triggered from a declaration.
|
|
7864
|
+
* True indicates that the references refers to the same symbol
|
|
7865
|
+
* (i.e. has the same meaning) as the declaration that began the
|
|
7866
|
+
* search.
|
|
7849
7867
|
*/
|
|
7850
|
-
isDefinition
|
|
7868
|
+
isDefinition?: boolean;
|
|
7851
7869
|
}
|
|
7852
7870
|
/**
|
|
7853
7871
|
* The body of a "references" response message.
|
|
@@ -8708,6 +8726,10 @@ declare namespace ts.server.protocol {
|
|
|
8708
8726
|
* Human-readable description of the `source`.
|
|
8709
8727
|
*/
|
|
8710
8728
|
sourceDisplay?: SymbolDisplayPart[];
|
|
8729
|
+
/**
|
|
8730
|
+
* Additional details for the label.
|
|
8731
|
+
*/
|
|
8732
|
+
labelDetails?: CompletionEntryLabelDetails;
|
|
8711
8733
|
/**
|
|
8712
8734
|
* If true, this completion should be highlighted as recommended. There will only be one of these.
|
|
8713
8735
|
* This will be set when we know the user should write an expression with a certain type and that type is an enum or constructable class.
|
|
@@ -8736,6 +8758,20 @@ declare namespace ts.server.protocol {
|
|
|
8736
8758
|
*/
|
|
8737
8759
|
data?: unknown;
|
|
8738
8760
|
}
|
|
8761
|
+
interface CompletionEntryLabelDetails {
|
|
8762
|
+
/**
|
|
8763
|
+
* An optional string which is rendered less prominently directly after
|
|
8764
|
+
* {@link CompletionEntry.name name}, without any spacing. Should be
|
|
8765
|
+
* used for function signatures or type annotations.
|
|
8766
|
+
*/
|
|
8767
|
+
detail?: string;
|
|
8768
|
+
/**
|
|
8769
|
+
* An optional string which is rendered less prominently after
|
|
8770
|
+
* {@link CompletionEntryLabelDetails.detail}. Should be used for fully qualified
|
|
8771
|
+
* names or file path.
|
|
8772
|
+
*/
|
|
8773
|
+
description?: string;
|
|
8774
|
+
}
|
|
8739
8775
|
/**
|
|
8740
8776
|
* Additional completion entry details, available on demand
|
|
8741
8777
|
*/
|
|
@@ -9629,6 +9665,18 @@ declare namespace ts.server.protocol {
|
|
|
9629
9665
|
* `class A { foo }`.
|
|
9630
9666
|
*/
|
|
9631
9667
|
readonly includeCompletionsWithClassMemberSnippets?: boolean;
|
|
9668
|
+
/**
|
|
9669
|
+
* If enabled, object literal methods will have a method declaration completion entry in addition
|
|
9670
|
+
* to the regular completion entry containing just the method name.
|
|
9671
|
+
* E.g., `const objectLiteral: T = { f| }` could be completed to `const objectLiteral: T = { foo(): void {} }`,
|
|
9672
|
+
* in addition to `const objectLiteral: T = { foo }`.
|
|
9673
|
+
*/
|
|
9674
|
+
readonly includeCompletionsWithObjectLiteralMethodSnippets?: boolean;
|
|
9675
|
+
/**
|
|
9676
|
+
* Indicates whether {@link CompletionEntry.labelDetails completion entry label details} are supported.
|
|
9677
|
+
* If not, contents of `labelDetails` may be included in the {@link CompletionEntry.name} property.
|
|
9678
|
+
*/
|
|
9679
|
+
readonly useLabelDetailsInCompletionEntries?: boolean;
|
|
9632
9680
|
readonly allowIncompleteCompletions?: boolean;
|
|
9633
9681
|
readonly importModuleSpecifierPreference?: "shortest" | "project-relative" | "relative" | "non-relative";
|
|
9634
9682
|
/** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */
|
|
@@ -9861,7 +9909,8 @@ declare namespace ts.server {
|
|
|
9861
9909
|
Inferred = 0,
|
|
9862
9910
|
Configured = 1,
|
|
9863
9911
|
External = 2,
|
|
9864
|
-
AutoImportProvider = 3
|
|
9912
|
+
AutoImportProvider = 3,
|
|
9913
|
+
Auxiliary = 4
|
|
9865
9914
|
}
|
|
9866
9915
|
function allRootFilesAreJsOrDts(project: Project): boolean;
|
|
9867
9916
|
function allFilesAreJsOrDts(project: Project): boolean;
|
|
@@ -10596,6 +10645,7 @@ declare namespace ts.server {
|
|
|
10596
10645
|
private getDefinition;
|
|
10597
10646
|
private mapDefinitionInfoLocations;
|
|
10598
10647
|
private getDefinitionAndBoundSpan;
|
|
10648
|
+
private findSourceDefinition;
|
|
10599
10649
|
private getEmitOutput;
|
|
10600
10650
|
private mapJSDocTagInfo;
|
|
10601
10651
|
private mapDisplayParts;
|