api-client-generator
api-client-generator copied to clipboard
Throw custom error message for missing http client module
Something like this could do
export class ApiClientModule {
constructor(@Optional() http: HttpClient) {
if (!http) {
throw new Error('You need to import the HttpClientModule in your main module (usually AppModule).');
}
}
}