4 ms·
The discussion on Github for user-defined type guards (spion's comment) is at https://github.com/Microsoft/TypeScript/issues/1007 https://github.com/Microsoft/T
by Arnavion 12y ago
The discussion on Github for user-defined type guards (spion's comment) is at https://github.com/Microsoft/TypeScript/issues/1007 https://github.com/Microsoft/TypeScript/issues/1007
Advanced pattern matching, monads, etc. might be out of scope for TS, since it doesn't want to have major syntactical additions from regular JS.