In my tslint.json I have this:
"typedef": [true, "call-signature", "parameter"],
"no-inferrable-types": [true, "ignore-params"],
as I want to force functions to have a return type and params to have a type however this forces me to have type on inferred params. example:
This fails even though start and end are inferred as numbers:
transform(start = 6, end = 4): number {
return;
}
Is there a way to force the params to have a type ONLY when they are not initialised like the example?
This should pass:
transform(start = 6, end = 4): number {
return;
}
This should fail:
transform(start, end): number {
return;
}