typescript 5.1.0-dev.20230227 → 5.1.0-dev.20230302

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.
@@ -117,8 +117,6 @@ declare namespace ts {
117
117
  Navto = "navto",
118
118
  NavTree = "navtree",
119
119
  NavTreeFull = "navtree-full",
120
- /** @deprecated */
121
- Occurrences = "occurrences",
122
120
  DocumentHighlights = "documentHighlights",
123
121
  Open = "open",
124
122
  Quickinfo = "quickinfo",
@@ -879,30 +877,6 @@ declare namespace ts {
879
877
  interface JsxClosingTagResponse extends Response {
880
878
  readonly body: TextInsertion;
881
879
  }
882
- /**
883
- * @deprecated
884
- * Get occurrences request; value of command field is
885
- * "occurrences". Return response giving spans that are relevant
886
- * in the file at a given line and column.
887
- */
888
- interface OccurrencesRequest extends FileLocationRequest {
889
- command: CommandTypes.Occurrences;
890
- }
891
- /** @deprecated */
892
- interface OccurrencesResponseItem extends FileSpanWithContext {
893
- /**
894
- * True if the occurrence is a write location, false otherwise.
895
- */
896
- isWriteAccess: boolean;
897
- /**
898
- * True if the occurrence is in a string, undefined otherwise;
899
- */
900
- isInString?: true;
901
- }
902
- /** @deprecated */
903
- interface OccurrencesResponse extends Response {
904
- body?: OccurrencesResponseItem[];
905
- }
906
880
  /**
907
881
  * Get document highlights request; value of command field is
908
882
  * "documentHighlights". Return response giving spans that are relevant
@@ -3065,10 +3039,6 @@ declare namespace ts {
3065
3039
  remove(path: NormalizedPath): void;
3066
3040
  }
3067
3041
  function isDynamicFileName(fileName: NormalizedPath): boolean;
3068
- interface ScriptInfoVersion {
3069
- svc: number;
3070
- text: number;
3071
- }
3072
3042
  class ScriptInfo {
3073
3043
  private readonly host;
3074
3044
  readonly fileName: NormalizedPath;
@@ -3081,10 +3051,9 @@ declare namespace ts {
3081
3051
  readonly containingProjects: Project[];
3082
3052
  private formatSettings;
3083
3053
  private preferences;
3084
- private textStorage;
3085
- constructor(host: ServerHost, fileName: NormalizedPath, scriptKind: ScriptKind, hasMixedContent: boolean, path: Path, initialVersion?: ScriptInfoVersion);
3054
+ constructor(host: ServerHost, fileName: NormalizedPath, scriptKind: ScriptKind, hasMixedContent: boolean, path: Path, initialVersion?: number);
3086
3055
  isScriptOpen(): boolean;
3087
- open(newText: string): void;
3056
+ open(newText: string | undefined): void;
3088
3057
  close(fileExists?: boolean): void;
3089
3058
  getSnapshot(): IScriptSnapshot;
3090
3059
  private ensureRealPath;
@@ -3874,7 +3843,6 @@ declare namespace ts {
3874
3843
  private getTypeDefinition;
3875
3844
  private mapImplementationLocations;
3876
3845
  private getImplementation;
3877
- private getOccurrences;
3878
3846
  private getSyntacticDiagnosticsSync;
3879
3847
  private getSemanticDiagnosticsSync;
3880
3848
  private getSuggestionDiagnosticsSync;
@@ -6636,14 +6604,12 @@ declare namespace ts {
6636
6604
  }) | (void & {
6637
6605
  __escapedIdentifier: void;
6638
6606
  }) | InternalSymbolName;
6639
- /** ReadonlyMap where keys are `__String`s. */
6640
- interface ReadonlyUnderscoreEscapedMap<T> extends ReadonlyMap<__String, T> {
6641
- }
6642
- /** Map where keys are `__String`s. */
6643
- interface UnderscoreEscapedMap<T> extends Map<__String, T> {
6644
- }
6607
+ /** @deprecated Use ReadonlyMap<__String, T> instead. */
6608
+ type ReadonlyUnderscoreEscapedMap<T> = ReadonlyMap<__String, T>;
6609
+ /** @deprecated Use Map<__String, T> instead. */
6610
+ type UnderscoreEscapedMap<T> = Map<__String, T>;
6645
6611
  /** SymbolTable based on ES6 Map interface. */
6646
- type SymbolTable = UnderscoreEscapedMap<Symbol>;
6612
+ type SymbolTable = Map<__String, Symbol>;
6647
6613
  enum TypeFlags {
6648
6614
  Any = 1,
6649
6615
  Unknown = 2,
@@ -8153,7 +8119,6 @@ declare namespace ts {
8153
8119
  noEmitHelpers?: boolean;
8154
8120
  }
8155
8121
  interface GetEffectiveTypeRootsHost {
8156
- directoryExists?(directoryName: string): boolean;
8157
8122
  getCurrentDirectory?(): string;
8158
8123
  }
8159
8124
  interface TextSpan {
@@ -9991,8 +9956,6 @@ declare namespace ts {
9991
9956
  findReferences(fileName: string, position: number): ReferencedSymbol[] | undefined;
9992
9957
  getDocumentHighlights(fileName: string, position: number, filesToSearch: string[]): DocumentHighlights[] | undefined;
9993
9958
  getFileReferences(fileName: string): ReferenceEntry[];
9994
- /** @deprecated */
9995
- getOccurrencesAtPosition(fileName: string, position: number): readonly ReferenceEntry[] | undefined;
9996
9959
  getNavigateToItems(searchValue: string, maxResultCount?: number, fileName?: string, excludeDtsFiles?: boolean): NavigateToItem[];
9997
9960
  getNavigationBarItems(fileName: string): NavigationBarItem[];
9998
9961
  getNavigationTree(fileName: string): NavigationTree;