News for hackers. Stuff that matters.
Re:Love for TypeScript by spion on Wednesday August 03, 2016 @10:35PM (#12223017)
1. Its unclear how you can declare new generic types using @type

Here is an example type of a map function in TypeScript:

declare var map: <T, U>(f: (t:T) => U, t:T[]) => U[]

I cannot figure out the equivalent @type annotation in Closure using these docs: https://developers.google.com/closure/compiler/docs/js-for-c...

There are no comments on this comment yet.