News for hackers. Stuff that matters.
Re:Pattern Matching with TypeScript by x1000 on Wednesday July 05, 2017 @02:05PM (#14704769)
This article seems relevant, https://www.typescriptlang.org/docs/handbook/advanced-types.... . Particularly the part on discriminated unions. I'm just now learning TypeScript, so I have yet to actually implement anything this way.

There are no comments on this comment yet.