- Simplified Declaration File (.d.ts) Acquisition (via npm)
- Non-nullable Types
- Control Flow Analyzed Types
- The readonly Modifier
Finally, I was wating for months :)
- Simplified Declaration File (.d.ts) Acquisition (via npm)
- Non-nullable Types
- Control Flow Analyzed Types
- The readonly Modifier
Finally, I was wating for months :)
http://www.typescriptlang.org/docs/handbook/tsconfig-json.ht...
This is huge from a usability perspective.
tsd install angular
is replaced by this? npm install -s @types/angularAside, my biggest concern with the new @types scope is that it is still tightly coupled with the DefinitelyTyped megarepo. DT has been a great help over the years, but it's so huge and increasingly hard to contribute to as DT has increased its quality bar and its size makes it a stress test on git tools and IDEs, too.
Otherwise, the @types packages on npm are the way to go.
Please note that most of the @types/XXX packages are just automatically extracted from the DefinitelyTyped repo. Big packages with lot's of updates can use their own repo.
But this is a huge, huge usability win. No more haggling with additional tools to get your typings.
I can see it's better (not sure why a single repository(!) was ever considered a good idea), but in the end both methods work if all you need is to obtain the latest version of a .d.ts file.