17 lines
289 B
TypeScript
17 lines
289 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`,
|
|
});
|