fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type (#35150)

PR Close #35150
This commit is contained in:
Oleg Teterin
2020-02-05 01:34:18 +03:00
committed by Misko Hevery
parent 5b80e944be
commit 79742a397f
14 changed files with 22 additions and 22 deletions

View File

@ -15,7 +15,7 @@ import { throwIfAlreadyLoaded } from './module-import-guard';
providers: [LoggerService]
})
export class CoreModule {
constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
constructor( @Optional() @SkipSelf() parentModule?: CoreModule) {
throwIfAlreadyLoaded(parentModule, 'CoreModule');
}
}