docs: fix and add decorator api doc (#28986)

PR Close #28986
This commit is contained in:
Judy Bogart
2019-02-26 08:25:01 -08:00
committed by Andrew Kushnir
parent c5f1d08a43
commit 95989a12dd
5 changed files with 98 additions and 91 deletions

View File

@ -574,6 +574,11 @@ export interface NgModule {
export declare const NgModule: NgModuleDecorator;
export interface NgModuleDecorator {
(obj?: NgModule): TypeDecorator;
new (obj?: NgModule): NgModule;
}
export declare abstract class NgModuleFactory<T> {
abstract readonly moduleType: Type<T>;
abstract create(parentInjector: Injector | null): NgModuleRef<T>;