Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: Ezno, a type checker for JavaScript and optimiser for React. Parent comment
There is an example signature at the end of the article; (x: any) => string, this error would not fly if x were unknown.
On of the few remaining scenarios where any might be necessary is to narrow down a generic param, ie <T extends Something<any>>.
There are no comments on this comment yet.
There is an example signature at the end of the article; (x: any) => string, this error would not fly if x were unknown.
On of the few remaining scenarios where any might be necessary is to narrow down a generic param, ie <T extends Something<any>>.