import { NgModule , ModuleWithProviders } from '@angular/core' ; import { HttpClientModule } from '@angular/common/http' ; import { CoolHttp } from './src/cool-http.service' ; export * from './src/cookie-store.service' ; export * from './src/cool-http.service' ; export * from './src/http-header.model' ; export * from './src/http-error.model' ; export * from './src/request-interceptor.interface' ; export * from './src/response-interceptor.interface' ; @ NgModule ( { exports : [ ] , imports : [ HttpClientModule ] , providers : [ CoolHttp ] } ) export class CoolHttpModule { deprecated public static forRoot ( ) { return { ngModule : CoolHttpModule , providers : [ ] } ; } }