Infer parameter types from usage
Tighten up your JavaScript and TypeScript by quickly adding explicit parameter types with the infer parameter types from usage
quick fix.
I’ve found this especially helpful when converting JS to TS.
To use this in JavaScript, make sure to enable type checking