News for hackers. Stuff that matters.
Re:TypeScript 1.4 sneak peek: union types, type guards, and ... by Horusiath on Wednesday November 19, 2014 @05:24PM (#8633076)
Why? This is exactly what type definition describes - an array of string or numbers. If you'd like to have an either array of strings or array of numbers, you'd type: Array<string>|Array<number>
Re:TypeScript 1.4 sneak peek: union types, type guards, and ... by frowaway001 on Wednesday November 19, 2014 @05:43PM (#8633175)
I think he meant that he would prefer not having to deal with an array where types are all over the place.