Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Love for TypeScript. Parent comment
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.
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...