refactor(common): ensure compatibility with typescript strict flag (#30993)
As part of FW-1265, the `@angular/common` package is made compatible with the TypeScript `--strict` flag. Read more about the strict flag [here](https://www.typescriptlang.org/docs/handbook/compiler-options.html) PR Close #30993
This commit is contained in:

committed by
Miško Hevery

parent
e061e638cb
commit
0139b11227
@ -231,7 +231,7 @@ export class HttpXhrBackend implements HttpBackend {
|
||||
// The onError callback is called when something goes wrong at the network level.
|
||||
// Connection timeout, DNS error, offline, etc. These are actual errors, and are
|
||||
// transmitted on the error channel.
|
||||
const onError = (error: ErrorEvent) => {
|
||||
const onError = (error: ProgressEvent) => {
|
||||
const {url} = partialFromXhr();
|
||||
const res = new HttpErrorResponse({
|
||||
error,
|
||||
|
Reference in New Issue
Block a user