Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
I sometimes forget that I can type Map/Set with a generic on the right hand side. I'd like to add a rule to enforce typing Map/Set with a generic on the RHS, instead of typing the variable on the LHS.
This would be an error:
constmySet:Set<string>=newSet();
And would autocorrect to:
constmySet=newSet<string>();