Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AxiosInstance cannot be invoked in TypeScript #1253

Closed
evanshortiss opened this issue Dec 21, 2017 · 2 comments
Closed

AxiosInstance cannot be invoked in TypeScript #1253

evanshortiss opened this issue Dec 21, 2017 · 2 comments

Comments

@evanshortiss
Copy link
Contributor

Summary

Currently the following will fail in TypeScript.

const axios = require('axios')
const instance = axios.create(DEFAULT_CONFIG)

instance(REQUEST_CONFIG)
  .then(onSuccess)
  .catch(onError)

Context

  • axios version: 0.17.1
  • Environment: node.js v6.9.1, typescript 2.6.2
@evanshortiss
Copy link
Contributor Author

Addressed by #1254

@nickuraltsev
Copy link
Contributor

Fixed via #1192 and #1254

@axios axios locked and limited conversation to collaborators May 22, 2020
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

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy