2018-03-09 01:32:32 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
/////**
|
2018-06-04 20:42:46 +02:00
|
|
|
//// * @template T
|
2018-03-09 01:32:32 +01:00
|
|
|
//// * @param {T} x
|
|
|
|
//// * @returns {T}
|
|
|
|
//// */
|
|
|
|
////var f = /*a*/x/*b*/ => x
|
|
|
|
|
|
|
|
verify.codeFix({
|
2018-12-04 18:03:08 +01:00
|
|
|
index: 0,
|
2018-03-09 01:32:32 +01:00
|
|
|
description: "Annotate with type from JSDoc",
|
|
|
|
newFileContent:
|
|
|
|
`/**
|
2018-06-04 20:42:46 +02:00
|
|
|
* @template T
|
2018-03-09 01:32:32 +01:00
|
|
|
* @param {T} x
|
|
|
|
* @returns {T}
|
|
|
|
*/
|
|
|
|
var f = <T>(x: T): T => x`,
|
|
|
|
});
|