A TypeScript rewrite of axios, providing a Promise-based HTTP client for browser and Node.js. Version 0.0.8 is the latest stable release, with weekly or monthly updates. It aims to bring full TypeScript support to axios, including type definitions for request/response, interceptors, and cancellation. Differentiates from the original axios by offering native TypeScript types out-of-the-box, though it may lag behind axios updates. Supports browser XMLHttpRequests and Node.js http, request/response interception, transformation, and automatic JSON parsing.
npm install types-axiosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import the default axios instance, make a GET request with async/await, and access response data.
Consider using 'npm install axios @types/axios' instead for official TypeScript support.
Use `const axios = require('types-axios').default;`Replace `axios.all([promises])` with `Promise.all([promises])` and `axios.spread` with direct destructuring.
Check the package's type definitions for the correct exported names.
Run `npm install types-axios` and ensure tsconfig.json includes 'node_modules/@types' or has 'skipLibCheck' appropriately.
Use `const axios = require('types-axios').default;`Use `Promise.all([...])` instead.
No dependency data recorded yet.