TypeScript/tests/cases/fourslash/annotateWithTypeFromJSDoc10.ts
Andy e5f91f5948
Convert annotateWithTypeFromJSDoc refactor to a codefix (#22336)
* Convert annotateWithTypeFromJSDoc refactor to a codefix

* Compute isJsFile once at top
2018-03-06 07:49:21 -08:00

17 lines
291 B
TypeScript

/// <reference path='fourslash.ts' />
/////**
//// * @param {?} x
//// * @returns {number}
//// */
////var f = (x) => x
verify.codeFix({
description: "Annotate with type from JSDoc",
newFileContent:
`/**
* @param {?} x
* @returns {number}
*/
var f = (x: any): number => x`,
});