I recently ran into this typescript syntax:
type Foo = | 5 | 6;
Turns out that this does compile, to my surprise. Is there any significance to that first pipe character? Or is it functionally equivalent to:
type Foo = 5 | 6;
I recently ran into this typescript syntax:
type Foo = | 5 | 6;
Turns out that this does compile, to my surprise. Is there any significance to that first pipe character? Or is it functionally equivalent to:
type Foo = 5 | 6;