test: add public api golden files

Includes a few style fixes on "* as foo" imports.
This commit is contained in:
Jason Choi
2016-06-22 14:56:10 -07:00
committed by Igor Minar
parent 249a6bdd98
commit 22d8f73bc9
25 changed files with 3658 additions and 67 deletions

View File

@ -0,0 +1,19 @@
export declare class UpgradeAdapter {
downgradeNg2Component(type: Type): Function;
upgradeNg1Component(name: string): Type;
bootstrap(element: Element, modules?: any[], config?: angular.IAngularBootstrapConfig): UpgradeAdapterRef;
addProvider(provider: Type | Provider | any[] | any): void;
upgradeNg1Provider(name: string, options?: {
asToken: any;
}): void;
downgradeNg2Provider(token: any): Function;
}
export declare class UpgradeAdapterRef {
ng1RootScope: angular.IRootScopeService;
ng1Injector: angular.IInjectorService;
ng2ApplicationRef: ApplicationRef;
ng2Injector: Injector;
ready(fn: (upgradeAdapterRef?: UpgradeAdapterRef) => void): void;
dispose(): void;
}