You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest we relax the syntax such that a single leading pipe symbol is allowed (but not required) in a union type declaration. Flow and F#, for example, both allow this syntax.
This change is backwards-compatible and gives developers a little more code formatting freedom.
Currently, because of the leading
|symbol , the following code is invalid TypeScript:I suggest we relax the syntax such that a single leading pipe symbol is allowed (but not required) in a union type declaration. Flow and F#, for example, both allow this syntax.
This change is backwards-compatible and gives developers a little more code formatting freedom.