News for hackers. Stuff that matters.
Re:Future of TypeScript on ESLint by alangpierce on Friday January 18, 2019 @11:58PM (#18945416)
Yeah, it's the syntax when calling a generic function, e.g. `Array.of<number | null>(1, 2, null);` has return type `Array<number | null>`. You usually don't need to specify the type since TypeScript can figure it out, but sometime's it's necessary to specify it explicitly.

TypeScript compiles `a<b>(x)` to `a(x)`, which is a function call, but when run as plain JS, `a<b>(x)` is a less-than and greater-than comparison between a, b, and x.

Re:Future of TypeScript on ESLint by tazard on Sunday January 20, 2019 @09:57AM (#18953303)
That's interesting and so obvious now that you mention it. Thanks for the clarification.