Y
Hacker News
new
|
ask
|
show
|
jobs
by
0xcoffee
3444 days ago
Not sure how many other languages support this, but I was pleasantly surprised when I used it in typescript. My first exposure to Intersection types:
T Extends Foo | Bar
T Extends Foo & Bar