2018-10-26 23:09:42 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @allowJs: true
|
|
|
|
// @checkJs: true
|
|
|
|
// @noEmit: true
|
|
|
|
// @noImplicitAny: true
|
|
|
|
// @Filename: important.js
|
|
|
|
|
|
|
|
|
|
|
|
////function coll(callback /*, name1, name2, ... */) {
|
|
|
|
//// return callback(this);
|
|
|
|
////}
|
|
|
|
|
|
|
|
verify.codeFix({
|
|
|
|
description: "Infer parameter types from usage",
|
2018-11-02 23:39:27 +01:00
|
|
|
index: 0,
|
2018-10-26 23:09:42 +02:00
|
|
|
newFileContent:
|
|
|
|
`/**
|
2019-09-06 01:16:35 +02:00
|
|
|
* @param {(arg0: any) => any} callback
|
2018-10-26 23:09:42 +02:00
|
|
|
*/
|
|
|
|
function coll(callback /*, name1, name2, ... */) {
|
|
|
|
return callback(this);
|
|
|
|
}`,
|
|
|
|
});
|