feat(typings): add typing specs

add test in gulpfile which will compile a basic TS file with generated
angular2.d.ts to ensure generated d.ts is valid syntactic TS

Adds support for enums in .d.ts generation pipeline.
Removes renaming reexports in http module.
This commit is contained in:
Daria Jung
2015-06-16 10:46:12 -07:00
committed by Rado Kirov
parent 6149ce28a7
commit 24646e7eb8
13 changed files with 102 additions and 19 deletions

18
typing_spec/basic_spec.ts Normal file
View File

@ -0,0 +1,18 @@
///<reference path="../dist/docs/angular2.d.ts"/>
import {Component, bootstrap, View} from 'angular2/angular2'
@Component({
selector: 'my-app'
})
@View({
template: '<h1>Hello {{ name }}</h1>'
})
// Component controller
class MyAppComponent {
name: string;
constructor() { this.name = 'Alice'; }
}
bootstrap(MyAppComponent);