Skip to content

Commit e1a7f84

Browse files
author
Andy
authored
Restore NewFileContent type (microsoft#25406)
1 parent 75369cd commit e1a7f84

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/cases/fourslash/fourslash.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ declare namespace FourSlashInterface {
178178
isInCommentAtPosition(onlyMultiLineDiverges?: boolean): void;
179179
codeFix(options: {
180180
description: string,
181-
newFileContent?: string | { readonly [fileName: string]: string },
181+
newFileContent?: NewFileContent,
182182
newRangeContent?: string,
183183
errorCode?: number,
184184
index?: number,
@@ -357,7 +357,7 @@ declare namespace FourSlashInterface {
357357
enableFormatting(): void;
358358
disableFormatting(): void;
359359

360-
applyRefactor(options: { refactorName: string, actionName: string, actionDescription: string, newContent: string }): void;
360+
applyRefactor(options: { refactorName: string, actionName: string, actionDescription: string, newContent: NewFileContent }): void;
361361
}
362362
class debug {
363363
printCurrentParameterHelp(): void;
@@ -626,6 +626,7 @@ declare namespace FourSlashInterface {
626626
}
627627

628628
type ArrayOrSingle<T> = T | ReadonlyArray<T>;
629+
type NewFileContent = string | { readonly [fileName: string]: string };
629630
}
630631
declare function verifyOperationIsCancelled(f: any): void;
631632
declare var test: FourSlashInterface.test_;

0 commit comments

Comments
 (0)