ce85ee5115
This makes it appear before the ts-ignore codefix, specifically.
22 lines
396 B
TypeScript
22 lines
396 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @noEmit: true
|
|
// @noImplicitAny: true
|
|
// @Filename: important.js
|
|
////class C {m(x) {return x;}}
|
|
////var c = new C()
|
|
////c.m(1)
|
|
|
|
verify.codeFix({
|
|
description: "Infer parameter types from usage",
|
|
index: 0,
|
|
newFileContent:
|
|
`class C {/**
|
|
* @param {number} x
|
|
*/
|
|
m(x) {return x;}}
|
|
var c = new C()
|
|
c.m(1)`,
|
|
});
|