Support assignment in typeguard if block #1769
Labels
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
it would be nice to support that kind of construction :
It's a common pattern used by library that take options in parameter.
Generally you can pass an array of string or a string if you have a single value, and internally the library will create an array in any case.
The text was updated successfully, but these errors were encountered: