TypeScript/tests/cases/fourslash/annotateWithTypeFromJSDoc_all.ts
Andy 3e32e15895
Add 'fixAllDescription' property to CodeFixAction (#22616)
* Add 'fixAllDescription' property to CodeFixAction

* Code review

* Add to protocol

* Make fixAllDescription be just a string
2018-03-27 18:21:21 -07:00

18 lines
376 B
TypeScript

/// <reference path='fourslash.ts' />
// @Filename: test123.ts
/////** @type {number} */
////var [|x|];
/////** @type {string} */
////var [|y|];
verify.codeFixAll({
fixId: "annotateWithTypeFromJSDoc",
fixAllDescription: "Annotate everything with types from JSDoc",
newFileContent:
`/** @type {number} */
var x: number;
/** @type {string} */
var y: string;`,
});