docs(type): Export Type so that we can link to it in our docs.

Closes #3345
This commit is contained in:
Misko Hevery
2015-07-28 14:41:36 -07:00
parent f6da89f74f
commit dad9338c82
4 changed files with 8 additions and 39 deletions

View File

@ -5,6 +5,7 @@
*/
export {appComponentTypeToken} from 'angular2/src/core/application_tokens';
export {ApplicationRef} from 'angular2/src/core/application_common';
export {Type} from 'angular2/src/facade/lang';
// Compiler Related Dependencies.

View File

@ -3,7 +3,13 @@ var _global: BrowserNodeGlobal = <any>(typeof window === 'undefined' ? global :
export {_global as global};
export var Type = Function;
export type Type = new (...args: any[]) => any;
/**
* Runtime representation of a type.
*
* In JavaScript a Type is a constructor function.
*/
export interface Type extends Function { new (...args): any; }
export function getTypeNameForDebugging(type: Type): string {
return type['name'];