Hacker News new | ask | show | jobs
by kfinley 3622 days ago
TypeScript 2 adds Easier Module Declarations[0]. So if a library doesn't have a type definition, you can silence errors by adding:

    declare module "some-module"
Does that help?

0: https://blogs.msdn.microsoft.com/typescript/2016/07/11/annou...

1 comments

Yes that does actually. My experience may have been with an earlier version of TypeScript. I haven't looked at it in a few months.
TypeScript 2 milestone on github shows it's pretty far from a release (imho). I liked Facebook's Flow language more, but it seems to be less popular.
V2 is currently in beta.

> In the coming weeks, a more stable release candidate will be coming out, with the final product landing not too far after.

-- https://blogs.msdn.microsoft.com/typescript/2016/07/11/annou...

Github says "40% complete" in a milestone, that's where I got the impression from https://i.imgur.com/DQoyGeW.png .
really?

I have the complete opposite feeling, when looking into the TS2 repo.

My feeling comes from "40% complete" on a milestone, where did you look at? https://i.imgur.com/DQoyGeW.png