3e32e15895
* Add 'fixAllDescription' property to CodeFixAction * Code review * Add to protocol * Make fixAllDescription be just a string
18 lines
391 B
TypeScript
18 lines
391 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////interface Foo {
|
|
//// bar: string;
|
|
////}
|
|
////const x: Foo.bar = "";
|
|
////const y: Foo.bar = "";
|
|
|
|
verify.codeFixAll({
|
|
fixId: "correctQualifiedNameToIndexedAccessType",
|
|
fixAllDescription: "Rewrite all as indexed access types",
|
|
newFileContent:
|
|
`interface Foo {
|
|
bar: string;
|
|
}
|
|
const x: Foo["bar"] = "";
|
|
const y: Foo["bar"] = "";`,
|
|
});
|