60efb65931
* Do not ts-ignore noImplicitAny suggestions Still need to write tests. * Add tests * More tests * Update baselines
24 lines
361 B
TypeScript
24 lines
361 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////class C {
|
|
//// /**
|
|
//// * @return {...*}
|
|
//// */
|
|
//// m(x) {
|
|
//// return [x];
|
|
//// }
|
|
////}
|
|
|
|
verify.codeFix({
|
|
description: "Annotate with type from JSDoc",
|
|
index: 0,
|
|
newFileContent:
|
|
`class C {
|
|
/**
|
|
* @return {...*}
|
|
*/
|
|
m(x): any[] {
|
|
return [x];
|
|
}
|
|
}`,
|
|
});
|