import { NgModule, Optional, SkipSelf } from '@angular/core';

import { throwIfAlreadyLoaded } from '@<%= npmScope %>/utils';
import { ELECTRON_PROVIDERS, ElectronService } from './services';

@NgModule({
  providers: [
    ...ELECTRON_PROVIDERS
  ]
})
export class <%= utils.classify(prefix) %>ElectronCoreModule {
  constructor(
    @Optional()
    @SkipSelf()
    parentModule: <%= utils.classify(prefix) %>ElectronCoreModule,
    private _electronService: ElectronService
  ) {
    throwIfAlreadyLoaded(parentModule, '<%= utils.classify(prefix) %>ElectronCoreModule');
  }
}
