import { NgModule , ModuleWithProviders } from '@angular/core' ; import { CORE_PROVIDERS } from './index' ; interface ICoreModuleOptions { window ? : any ; console ? : any ; } /**
 * Do not specify providers for modules that might be imported by a lazy loaded module.
 */ @ NgModule ( { providers : CORE_PROVIDERS } ) export class CoreModule { static forRoot ( configuredProviders ) { return { ngModule : CoreModule , providers : configuredProviders } ; } }