6cee7c3080
* Initial version, doesn't work for primitives yet. Need to find out why. * Primitives now work, plus improve error message null and void don't even parse without parameter names so they are not tested. * Codefix: Add names to nameless parameters * Improve error wording * Add detail to error message
14 lines
425 B
TypeScript
14 lines
425 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
////interface I { i: number }
|
|
////class C { a = 1 }
|
|
////var x: { (boolean, undefined, I, C): string };
|
|
|
|
verify.codeFixAll({
|
|
fixId: "addNameToNamelessParameter",
|
|
fixAllDescription: "Add names to all parameters without names",
|
|
newFileContent:
|
|
`interface I { i: number }
|
|
class C { a = 1 }
|
|
var x: { (arg0: boolean, arg1: undefined, arg2: I, arg3: C): string };`
|
|
});
|