60efb65931
* Do not ts-ignore noImplicitAny suggestions Still need to write tests. * Add tests * More tests * Update baselines
23 lines
356 B
TypeScript
23 lines
356 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
/////**
|
|
//// * @param {number} x
|
|
//// * @returns {number}
|
|
//// */
|
|
////function f(x) {
|
|
//// return x;
|
|
////}
|
|
|
|
verify.codeFix({
|
|
description: "Annotate with type from JSDoc",
|
|
index: 0,
|
|
newFileContent:
|
|
`/**
|
|
* @param {number} x
|
|
* @returns {number}
|
|
*/
|
|
function f(x: number): number {
|
|
return x;
|
|
}`,
|
|
});
|