Restore NewFileContent
type (#25406)
This commit is contained in:
parent
75369cd887
commit
e1a7f8497e
|
@ -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> = T | ReadonlyArray<T>;
|
||||
type NewFileContent = string | { readonly [fileName: string]: string };
|
||||
}
|
||||
declare function verifyOperationIsCancelled(f: any): void;
|
||||
declare var test: FourSlashInterface.test_;
|
||||
|
|
Loading…
Reference in a new issue