2017-09-25 18:02:42 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
/////**
|
|
|
|
//// * @param {number} x
|
|
|
|
//// * @returns {number}
|
|
|
|
//// */
|
2018-03-06 16:49:21 +01:00
|
|
|
////var f = function (x) {
|
2018-04-05 21:33:00 +02:00
|
|
|
//// return x
|
2017-09-25 18:02:42 +02:00
|
|
|
////}
|
|
|
|
|
2018-03-06 16:49:21 +01:00
|
|
|
verify.codeFix({
|
|
|
|
description: "Annotate with type from JSDoc",
|
2018-11-05 20:29:16 +01:00
|
|
|
index: 0,
|
2018-03-06 16:49:21 +01:00
|
|
|
newFileContent:
|
2017-09-25 18:02:42 +02:00
|
|
|
`/**
|
|
|
|
* @param {number} x
|
|
|
|
* @returns {number}
|
|
|
|
*/
|
2018-03-08 20:47:30 +01:00
|
|
|
var f = function (x: number): number {
|
2018-04-05 21:33:00 +02:00
|
|
|
return x
|
2018-03-06 16:49:21 +01:00
|
|
|
}`,
|
|
|
|
});
|