Skip to content

Commit 4e40185

Browse files
Accepted API baselines.
1 parent 1f907ae commit 4e40185

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5102,14 +5102,6 @@ declare namespace ts {
51025102
export function formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): string;
51035103
export function formatDiagnosticsWithColorAndContext(diagnostics: readonly Diagnostic[], host: FormatDiagnosticsHost): string;
51045104
export function flattenDiagnosticMessageText(diag: string | DiagnosticMessageChain | undefined, newLine: string, indent?: number): string;
5105-
/**
5106-
* Subset of a SourceFile used to calculate index-based resolutions
5107-
* This includes some internal fields, so unless you have very good reason,
5108-
* (and are willing to use some less stable internals) you should probably just pass a SourceFile.
5109-
*/
5110-
export interface SourceFileImportsList {
5111-
impliedNodeFormat?: SourceFile["impliedNodeFormat"];
5112-
}
51135105
/**
51145106
* Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly
51155107
* provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.
@@ -5122,7 +5114,7 @@ declare namespace ts {
51225114
* @param file File to fetch the resolution mode within
51235115
* @param index Index into the file's complete resolution list to get the resolution of - this is a concatenation of the file's imports and module augmentations
51245116
*/
5125-
export function getModeForResolutionAtIndex(file: SourceFileImportsList, index: number): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
5117+
export function getModeForResolutionAtIndex(file: SourceFile, index: number): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
51265118
/**
51275119
* Calculates the final resolution mode for a given module reference node. This is generally the explicitly provided resolution mode, if
51285120
* one exists, or the mode of the containing source file. (Excepting import=require, which is always commonjs, and dynamic import, which is always esm).

tests/baselines/reference/api/typescript.d.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5102,14 +5102,6 @@ declare namespace ts {
51025102
export function formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): string;
51035103
export function formatDiagnosticsWithColorAndContext(diagnostics: readonly Diagnostic[], host: FormatDiagnosticsHost): string;
51045104
export function flattenDiagnosticMessageText(diag: string | DiagnosticMessageChain | undefined, newLine: string, indent?: number): string;
5105-
/**
5106-
* Subset of a SourceFile used to calculate index-based resolutions
5107-
* This includes some internal fields, so unless you have very good reason,
5108-
* (and are willing to use some less stable internals) you should probably just pass a SourceFile.
5109-
*/
5110-
export interface SourceFileImportsList {
5111-
impliedNodeFormat?: SourceFile["impliedNodeFormat"];
5112-
}
51135105
/**
51145106
* Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly
51155107
* provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.
@@ -5122,7 +5114,7 @@ declare namespace ts {
51225114
* @param file File to fetch the resolution mode within
51235115
* @param index Index into the file's complete resolution list to get the resolution of - this is a concatenation of the file's imports and module augmentations
51245116
*/
5125-
export function getModeForResolutionAtIndex(file: SourceFileImportsList, index: number): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
5117+
export function getModeForResolutionAtIndex(file: SourceFile, index: number): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
51265118
/**
51275119
* Calculates the final resolution mode for a given module reference node. This is generally the explicitly provided resolution mode, if
51285120
* one exists, or the mode of the containing source file. (Excepting import=require, which is always commonjs, and dynamic import, which is always esm).

0 commit comments

Comments
 (0)