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

PR Close #28986

PR Close #29112
This commit is contained in:
Judy Bogart
2019-02-26 08:25:01 -08:00
committed by Andrew Kushnir
parent 3e08794abf
commit c976b88dcf
4 changed files with 89 additions and 71 deletions

View File

@ -569,6 +569,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>;