Skip to content

Commit ae7e48a

Browse files
author
Andy Hanson
committed
Update API (#24966)
1 parent 73a3a07 commit ae7e48a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11084,6 +11084,9 @@ declare namespace ts.FindAllReferences.Core {
1108411084
}
1108511085
declare namespace ts {
1108611086
function getEditsForFileRename(program: Program, oldFileOrDirPath: string, newFileOrDirPath: string, host: LanguageServiceHost, formatContext: formatting.FormatContext, preferences: UserPreferences): ReadonlyArray<FileTextChanges>;
11087+
/** If 'path' refers to an old directory, returns path in the new directory. */
11088+
type PathUpdater = (path: string) => string | undefined;
11089+
function getPathUpdater(oldFileOrDirPath: string, newFileOrDirPath: string, getCanonicalFileName: GetCanonicalFileName): PathUpdater;
1108711090
}
1108811091
declare namespace ts.GoToDefinition {
1108911092
function getDefinitionAtPosition(program: Program, sourceFile: SourceFile, position: number): DefinitionInfo[] | undefined;
@@ -11508,7 +11511,7 @@ declare namespace ts.textChanges {
1150811511
createNewFile(oldFile: SourceFile, fileName: string, statements: ReadonlyArray<Statement>): void;
1150911512
}
1151011513
type ValidateNonFormattedText = (node: Node, text: string) => void;
11511-
function applyChanges(text: string, changes: TextChange[]): string;
11514+
function applyChanges(text: string, changes: ReadonlyArray<TextChange>): string;
1151211515
function isValidLocationToAddComment(sourceFile: SourceFile, position: number): boolean;
1151311516
}
1151411517
declare namespace ts {

0 commit comments

Comments
 (0)