Y
Hacker News
new
|
ask
|
show
|
jobs
by
pseudonom-
2848 days ago
You can use switch statements for a pattern matching analogue. See the "Exhaustiveness Checking" heading at
https://www.typescriptlang.org/docs/handbook/advanced-types....
.