Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

responseType #3

Closed
dvadvaa opened this issue Oct 13, 2020 · 5 comments
Closed

responseType #3

dvadvaa opened this issue Oct 13, 2020 · 5 comments

Comments

@dvadvaa
Copy link

dvadvaa commented Oct 13, 2020

Hello. The example from the readme returns an error. Problem with responseType.

Example code:

axiod({ method: "get", url: "http://bit.ly/2mTM3nY", responseType: "stream", }).then((response) => { response.data.pipe(fs.createWriteStream("ada_lovelace.jpg")); });

Error:

[ERROR]: Argument of type '{ method: string; url: string; responseType: string; }' is not assignable to parameter of type 'string | IRequest'. Object literal may only specify known properties, and 'responseType' does not exist in type 'IRequest'.

@roonie007
Copy link
Owner

@dvadvaa I will check it this weekend

@dvadvaa
Copy link
Author

dvadvaa commented Oct 22, 2020

Good!

@roonie007
Copy link
Owner

Resolved in this PR #18

@TheJizel
Copy link

TheJizel commented Feb 6, 2022

FYI - this is still an issue

@roonie007
Copy link
Owner

@TheJizel can you give an example ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants