diff --git a/modules/@angular/core/src/application_ref.ts b/modules/@angular/core/src/application_ref.ts index 1b44be5964..802655731a 100644 --- a/modules/@angular/core/src/application_ref.ts +++ b/modules/@angular/core/src/application_ref.ts @@ -204,10 +204,9 @@ export abstract class PlatformRef { * ``` * @stable */ - bootstrapModule(moduleType: Type, compilerOptions: CompilerOptions|CompilerOptions[] = []): - Promise> { - throw unimplemented(); - } + abstract bootstrapModule( + moduleType: Type, + compilerOptions?: CompilerOptions|CompilerOptions[]): Promise>; /** * Register a listener to be called when the platform is disposed. diff --git a/modules/@angular/core/src/di/reflective_injector.ts b/modules/@angular/core/src/di/reflective_injector.ts index 6f23a4c809..cc4f4bf05b 100644 --- a/modules/@angular/core/src/di/reflective_injector.ts +++ b/modules/@angular/core/src/di/reflective_injector.ts @@ -523,9 +523,7 @@ export abstract class ReflectiveInjector implements Injector { * expect(child.get(ParentProvider)).toBe(parent.get(ParentProvider)); * ``` */ - createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector { - return unimplemented(); - } + abstract createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector; /** * Resolves a provider and instantiates an object in the context of the injector. diff --git a/tools/public_api_guard/core/index.d.ts b/tools/public_api_guard/core/index.d.ts index 23a0f32492..4199943324 100644 --- a/tools/public_api_guard/core/index.d.ts +++ b/tools/public_api_guard/core/index.d.ts @@ -171,10 +171,10 @@ export declare class ApplicationModule { export declare abstract class ApplicationRef { componentTypes: Type[]; components: ComponentRef[]; - viewCount: any; - attachView(view: ViewRef): void; + viewCount: number; + abstract attachView(view: ViewRef): void; abstract bootstrap(componentFactory: ComponentFactory | Type): ComponentRef; - detachView(view: ViewRef): void; + abstract detachView(view: ViewRef): void; abstract tick(): void; } @@ -521,8 +521,8 @@ export declare class InjectionToken extends OpaqueToken { /** @stable */ export declare abstract class Injector { - get(token: Type | InjectionToken, notFoundValue?: T): T; - /** @deprecated */ get(token: any, notFoundValue?: any): any; + abstract get(token: Type | InjectionToken, notFoundValue?: T): T; + /** @deprecated */ abstract get(token: any, notFoundValue?: any): any; static NULL: Injector; static THROW_IF_NOT_FOUND: Object; } @@ -741,8 +741,8 @@ export declare const platformCore: (extraProviders?: Provider[]) => PlatformRef; export declare abstract class PlatformRef { destroyed: boolean; injector: Injector; - /** @stable */ bootstrapModule(moduleType: Type, compilerOptions?: CompilerOptions | CompilerOptions[]): Promise>; - /** @experimental */ bootstrapModuleFactory(moduleFactory: NgModuleFactory): Promise>; + /** @stable */ abstract bootstrapModule(moduleType: Type, compilerOptions?: CompilerOptions | CompilerOptions[]): Promise>; + /** @experimental */ abstract bootstrapModuleFactory(moduleFactory: NgModuleFactory): Promise>; abstract destroy(): void; abstract onDestroy(callback: () => void): void; } @@ -777,11 +777,11 @@ export declare class QueryList { /** @stable */ export declare abstract class ReflectiveInjector implements Injector { parent: Injector; - createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector; + abstract createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector; abstract get(token: any, notFoundValue?: any): any; - instantiateResolved(provider: ResolvedReflectiveProvider): any; - resolveAndCreateChild(providers: Provider[]): ReflectiveInjector; - resolveAndInstantiate(provider: Provider): any; + abstract instantiateResolved(provider: ResolvedReflectiveProvider): any; + abstract resolveAndCreateChild(providers: Provider[]): ReflectiveInjector; + abstract resolveAndInstantiate(provider: Provider): any; /** @experimental */ static fromResolvedProviders(providers: ResolvedReflectiveProvider[], parent?: Injector): ReflectiveInjector; static resolve(providers: Provider[]): ResolvedReflectiveProvider[]; static resolveAndCreate(providers: Provider[], parent?: Injector): ReflectiveInjector;