diff --git a/tests/cases/fourslash/fourslash.ts b/tests/cases/fourslash/fourslash.ts index 2c62f5161d619..5ee7ef31be47b 100644 --- a/tests/cases/fourslash/fourslash.ts +++ b/tests/cases/fourslash/fourslash.ts @@ -178,7 +178,7 @@ declare namespace FourSlashInterface { isInCommentAtPosition(onlyMultiLineDiverges?: boolean): void; codeFix(options: { description: string, - newFileContent?: string | { readonly [fileName: string]: string }, + newFileContent?: NewFileContent, newRangeContent?: string, errorCode?: number, index?: number, @@ -357,7 +357,7 @@ declare namespace FourSlashInterface { enableFormatting(): void; disableFormatting(): void; - applyRefactor(options: { refactorName: string, actionName: string, actionDescription: string, newContent: string }): void; + applyRefactor(options: { refactorName: string, actionName: string, actionDescription: string, newContent: NewFileContent }): void; } class debug { printCurrentParameterHelp(): void; @@ -626,6 +626,7 @@ declare namespace FourSlashInterface { } type ArrayOrSingle = T | ReadonlyArray; + type NewFileContent = string | { readonly [fileName: string]: string }; } declare function verifyOperationIsCancelled(f: any): void; declare var test: FourSlashInterface.test_;