4 ms·
Unions were added in TS 1.4, over a year ago. https://blogs.msdn.microsoft.com/typescript/2015/01/16/announcing-typescript-1-4/ https://blogs.msdn.microsoft.co
by softawre 11y ago
Unions were added in TS 1.4, over a year ago.
https://blogs.msdn.microsoft.com/typescript/2015/01/16/announcing-typescript-1-4/ https://blogs.msdn.microsoft.com/typescript/2015/01/16/annou...
- WorldMaker 11y agoAlso, Intersections were added in TS 1.6, last year: https://blogs.msdn.microsoft.com/typescript/2015/09/16/announcing-typescript-1-6/ https://blogs.msdn.microsoft.com/typescript/2015/09/16/annou... They seem to be moving at a decent, agile pace to improving/expanding upon the algebraic sides of the type system.
- d1plo1d 11y agoYup, I was definitely wrong on that one. Sorry about that. Thank you for correcting me.
- WorldMaker 11y agoNext up on the roadmap, Typescript is working to add opt-in strict null and undefined checking which is probably the last area where Flow's type system is particularly better than Typescript's. (It will be opt-in as Typescript follows a rule of increasing strictness via compile options to support the spectrum of JS needs, but also as it will not be entirely backward compatible with existing type definition files and will need some effort among typings authors.)