TypeScript/tests/cases/fourslash/codeFixChangeJSDocSyntax_all_nullable.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

11 lines
339 B
TypeScript

/// <reference path='fourslash.ts' />
// @strict: true
////function f(a: ?number, b: string!) {}
verify.codeFixAll({
fixId: "fixJSDocTypes_nullable",
fixAllDescription: "Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)",
newFileContent: "function f(a: number | null | undefined, b: string) {}",
})