Comments (3)
I had the same issue so, I just edited the definition file myself. This isn't a lasting change but it will atleast let you build your project for now.
export declare class RetryInterceptor implements Interceptor {
retryConfig: RetryConfiguration;
constructor(retryConfig?: RetryConfiguration);
request(request: Request): Request;
response(response: Response, request?: Request): Response;
responseError(error: Response, request?: Request, httpClient?: HttpClient): Promise<Response>;
}
from fetch-client.
I did the something similar as a quick fix.
export declare class RetryInterceptor implements Interceptor {
retryConfig: RetryConfiguration;
constructor(retryConfig?: RetryConfiguration);
request(request: Request): Request;
response(response: Response, request?: Request): Response | Promise<Response>;
responseError(error: Response, request?: Request, httpClient?: HttpClient): Response | Promise<Response>;
}
I would be happy to make the fix on the definition file and create a PR, but I'm not sure if it is being automatically generated. @EisenbergEffect If it is not auto-generated, please let me know and I will submit a PR.
from fetch-client.
We recently switch this repo over to using TS as its source language. So, the d.ts file is now generated directly from TS. I think a PR directly to the src
folder to correct it there would be the way to go. Thanks for volunteering @tareqimbasher !
from fetch-client.
Related Issues (20)
- Add support for AbortSignal HOT 2
- unable to modify request header using an interceptor HOT 6
- ReadableStream uploading is not supported (Safari 11.1.1) HOT 7
- Cannot find name 'AbortSignal' HOT 5
- Converting repo to typescript HOT 5
- HTTP methods must be upper case HOT 2
- call trackRequestEnd when fetch fails HOT 8
- Version 1.8.0 does not work in Android Cordova App HOT 7
- version 1.8.0 generates infinite loop with retry configured to 0 HOT 2
- Version 1.8.1 "cannot find module 'aurelia-fetch-client'" HOT 3
- Is this package version number following semver? HOT 5
- config.rejectErrorResponses - lots of console warnings HOT 6
- Fetch attempts fail with TypeError on Safari 10.1 HOT 1
- Broken typings? HOT 1
- Question - json()'s benefit of converting to Blob HOT 17
- setting no-cors mode affecting content-type header behaviour
- Interceptor.responseError question HOT 5
- Fetch client doesn't like array assignment of JSON data HOT 1
- Feature request: Add aurelia-fetch-client-requests-drained event. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fetch-client.