typescript 4.7.0-dev.20220405 → 4.7.0-dev.20220415

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.
@@ -523,16 +523,17 @@ declare namespace ts {
523
523
  YieldContext = 8192,
524
524
  DecoratorContext = 16384,
525
525
  AwaitContext = 32768,
526
- ThisNodeHasError = 65536,
527
- JavaScriptFile = 131072,
528
- ThisNodeOrAnySubNodesHasError = 262144,
529
- HasAggregatedChildData = 524288,
530
- JSDoc = 4194304,
531
- JsonFile = 33554432,
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 = 25358336,
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;
@@ -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. */
@@ -3654,9 +3656,9 @@ declare namespace ts {
3654
3656
  updateExternalModuleReference(node: ExternalModuleReference, expression: Expression): ExternalModuleReference;
3655
3657
  createJSDocAllType(): JSDocAllType;
3656
3658
  createJSDocUnknownType(): JSDocUnknownType;
3657
- createJSDocNonNullableType(type: TypeNode): JSDocNonNullableType;
3659
+ createJSDocNonNullableType(type: TypeNode, postfix?: boolean): JSDocNonNullableType;
3658
3660
  updateJSDocNonNullableType(node: JSDocNonNullableType, type: TypeNode): JSDocNonNullableType;
3659
- createJSDocNullableType(type: TypeNode): JSDocNullableType;
3661
+ createJSDocNullableType(type: TypeNode, postfix?: boolean): JSDocNullableType;
3660
3662
  updateJSDocNullableType(node: JSDocNullableType, type: TypeNode): JSDocNullableType;
3661
3663
  createJSDocOptionalType(type: TypeNode): JSDocOptionalType;
3662
3664
  updateJSDocOptionalType(node: JSDocOptionalType, type: TypeNode): JSDocOptionalType;
@@ -6206,7 +6208,6 @@ declare namespace ts {
6206
6208
  }
6207
6209
  interface ReferenceEntry extends DocumentSpan {
6208
6210
  isWriteAccess: boolean;
6209
- isDefinition: boolean;
6210
6211
  isInString?: true;
6211
6212
  }
6212
6213
  interface ImplementationLocation extends DocumentSpan {
@@ -6320,7 +6321,10 @@ declare namespace ts {
6320
6321
  }
6321
6322
  interface ReferencedSymbol {
6322
6323
  definition: ReferencedSymbolDefinitionInfo;
6323
- references: ReferenceEntry[];
6324
+ references: ReferencedSymbolEntry[];
6325
+ }
6326
+ interface ReferencedSymbolEntry extends ReferenceEntry {
6327
+ isDefinition?: boolean;
6324
6328
  }
6325
6329
  enum SymbolDisplayPartKind {
6326
6330
  aliasName = 0,
@@ -7034,6 +7038,7 @@ declare namespace ts.server.protocol {
7034
7038
  Rename = "rename",
7035
7039
  Saveto = "saveto",
7036
7040
  SignatureHelp = "signatureHelp",
7041
+ FindSourceDefinition = "findSourceDefinition",
7037
7042
  Status = "status",
7038
7043
  TypeDefinition = "typeDefinition",
7039
7044
  ProjectInfo = "projectInfo",
@@ -7653,6 +7658,9 @@ declare namespace ts.server.protocol {
7653
7658
  interface DefinitionAndBoundSpanRequest extends FileLocationRequest {
7654
7659
  readonly command: CommandTypes.DefinitionAndBoundSpan;
7655
7660
  }
7661
+ interface FindSourceDefinitionRequest extends FileLocationRequest {
7662
+ readonly command: CommandTypes.FindSourceDefinition;
7663
+ }
7656
7664
  interface DefinitionAndBoundSpanResponse extends Response {
7657
7665
  readonly body: DefinitionInfoAndBoundSpan;
7658
7666
  }
@@ -7852,9 +7860,12 @@ declare namespace ts.server.protocol {
7852
7860
  */
7853
7861
  isWriteAccess: boolean;
7854
7862
  /**
7855
- * True if reference is a definition, false otherwise.
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.
7856
7867
  */
7857
- isDefinition: boolean;
7868
+ isDefinition?: boolean;
7858
7869
  }
7859
7870
  /**
7860
7871
  * The body of a "references" response message.
@@ -9898,7 +9909,8 @@ declare namespace ts.server {
9898
9909
  Inferred = 0,
9899
9910
  Configured = 1,
9900
9911
  External = 2,
9901
- AutoImportProvider = 3
9912
+ AutoImportProvider = 3,
9913
+ Auxiliary = 4
9902
9914
  }
9903
9915
  function allRootFilesAreJsOrDts(project: Project): boolean;
9904
9916
  function allFilesAreJsOrDts(project: Project): boolean;
@@ -10633,6 +10645,7 @@ declare namespace ts.server {
10633
10645
  private getDefinition;
10634
10646
  private mapDefinitionInfoLocations;
10635
10647
  private getDefinitionAndBoundSpan;
10648
+ private findSourceDefinition;
10636
10649
  private getEmitOutput;
10637
10650
  private mapJSDocTagInfo;
10638
10651
  private mapDisplayParts;