ce85ee5115
This makes it appear before the ts-ignore codefix, specifically.
26 lines
388 B
TypeScript
26 lines
388 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @noImplicitAny: true
|
|
// @Filename: important.js
|
|
////function f([|a|]){
|
|
//// a;
|
|
////}
|
|
////f();
|
|
////f(1);
|
|
|
|
verify.codeFix({
|
|
description: "Infer parameter types from usage",
|
|
index: 0,
|
|
newFileContent:
|
|
`/**
|
|
* @param {number} [a]
|
|
*/
|
|
function f(a){
|
|
a;
|
|
}
|
|
f();
|
|
f(1);`,
|
|
});
|