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:
3
modules/angular2/angular2.api.dart
Normal file
3
modules/angular2/angular2.api.dart
Normal 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.
|
Reference in New Issue
Block a user