infer-from-usage codefix should mark parameters as optional #28377
Labels
Domain: Quick Fixes
Editor-provided fixes, often called code actions.
In Discussion
Not yet reached consensus
Suggestion
An idea for TypeScript
Search Terms
codefix infer from usage optional parameter
Suggestion
When you ask to for the infer-from-usage codefix for
f
:You should get
function f(x: number, y?: number | undefined)
This already works in JS. You get
/** @param {number | undefined} [y] */
.The text was updated successfully, but these errors were encountered: