fix(docs): Working generated angular2.d.ts

This requires some hacks, documented in
https://docs.google.com/document/d/1nNebWTiLzz5ePcit_bjZPtaiSIFU4EsQKUlX7LX0c0A/edit

Changes:
- include subtyping info in angular2.d.ts by adding 'extends supertype'
- export missing symbols needed transitively by angular2/angular2
- because of decorator/annotation mismatch, we can't export these to applications.
  So I've added a separate angular2.api.ts file to re-export specifically to .d.ts
  generation.
- Hack to remove aliases introduced by 'import * as alias' syntax
- Hack to deal with Error still an interface

note that we require users to install the transitive dependencies - this is how TSD works.
This commit is contained in:
Alex Eagle
2015-06-02 17:32:03 -07:00
parent 5357b1548a
commit 7141c15e65
5 changed files with 108 additions and 10 deletions

View File

@ -0,0 +1,3 @@
library angular2.angular2.api;
// Ignore this file for dart emit.
// It is used only for generating the TypeScript .d.ts file.