News for hackers. Stuff that matters.
Re:JavaScript libraries should be written in TypeScript by novaleaf on Thursday March 17, 2016 @12:48PM (#11305593)
Here's a scenario: You write a library that uses Promises, and use bluebird.d.ts for that definition.

For someone to use your library, they will have to download bluebird.d.ts manually and include it. if you (the lib dev) include it yourself, then any other definition of Promise (including if the user has their own bluebird.d.ts definition included) will cause typing collisions.

As someone mentioned, the Typings project might solve this, but there isn't very good communication on this project and the problems it's supposed to solve.

There are no comments on this comment yet.