You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
import{RequestOptionsArgs}from'@angular/http';exportenumHttpCachePolicy{Never=<any>false,Always=<any>true,Update=<any>'update'}// RequestOptionArgs is declared in a re-exported module, so we have to extend the original module to make it work// properly (see https://github.com/Microsoft/TypeScript/issues/13897)declare module '@angular/http/src/interfaces'{// Use this interface to extend requests options if neededexportinterfaceRequestOptionsArgs{cache?: boolean|HttpCachePolicy;skipErrorHandler?: boolean;}}
This is maybe a TypeScript issue, but if I remove the import the interface extension does not work well, maybe because it depends of the load order. Maybe it's fixed in latest TypeScript versions, I'll make some tests.
Anyway the TS compiler does not flag it as unused.
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
This error is reported:
Expected behavior
No error should be reported here as the intent is to extend the existing interface, this is not a case of shadowed variable.
The text was updated successfully, but these errors were encountered: