VDone Demo VDone Demo
Home
  • Articles

    • JavaScript
  • Study Notes

    • JavaScript Tutorial
    • Professional JavaScript
    • ES6 Tutorial
    • Vue
    • React
    • TypeScript: Build Axios from Scratch
    • Git
    • TypeScript
    • JS Design Patterns
  • HTML
  • CSS
  • Technical Docs
  • GitHub Tips
  • Node.js
  • Blog Setup
  • Learning
  • Interviews
  • Miscellaneous
  • Practical Tips
  • Friends
About
Bookmarks
  • Categories
  • Tags
  • Archives
GitHub (opens new window)

Nikolay Tuzov

Backend Developer
Home
  • Articles

    • JavaScript
  • Study Notes

    • JavaScript Tutorial
    • Professional JavaScript
    • ES6 Tutorial
    • Vue
    • React
    • TypeScript: Build Axios from Scratch
    • Git
    • TypeScript
    • JS Design Patterns
  • HTML
  • CSS
  • Technical Docs
  • GitHub Tips
  • Node.js
  • Blog Setup
  • Learning
  • Interviews
  • Miscellaneous
  • Practical Tips
  • Friends
About
Bookmarks
  • Categories
  • Tags
  • Archives
GitHub (opens new window)
  • JavaScript文章

  • 学习笔记

    • JavaScript Tutorial - Notes
    • Professional JavaScript for Web Developers - Notes
    • ES6 Tutorial - Notes
    • Vue - Notes
    • React - Notes
    • TypeScript - Implementing axios from Scratch
    • Git - Study Notes
    • TypeScript Notes
    • Mini Program Notes
    • JS Design Patterns Summary Notes
TypeScript - Implementing axios from Scratch
Learn to implement the axios library from scratch using TypeScript
Contents
# 1. 初识 TypeScript
1-1. Introduction 1-2. Installing TypeScript 1-3. Writing Your First TypeScript Program
# 2. TypeScript 常用语法
2-1. Basic Types 2-2. Variable Declarations 2-3. Interfaces 2-4. Classes 2-5. Functions 2-6. Generics 2-7. Type Inference 2-8. Advanced Types
# 3. ts-axios 项目初始化
3-1. Requirements Analysis 3-2. Initializing the Project 3-3. Writing Basic Request Code
# 4. ts-axios 基础功能实现
4-1. Handling Request URL Parameters 4-2. Handling Request Body Data 4-3. Handling Request Headers 4-4. Retrieving Response Data 4-5. Handling Response Headers 4-6. Handling Response Data
# 5. ts-axios 异常情况处理
5-1. Error Handling 5-2. Enhanced Error Information
# 6. ts-axios 接口扩展
6-1. Extending Interfaces 6-2. axios Function Overloading 6-3. Generic Support for Response Data
# 7. ts-axios 拦截器实现
7-1. Interceptor Design and Implementation
# 8. ts-axios 配置化实现
8-1. Config Merging Design and Implementation 8-2. Request and Response Configuration 8-3. Extending the create Static Interface
# 9. ts-axios 取消功能实现
9-1. Cancellation Design and Implementation
# 10. ts-axios 更多功能实现
10-1. withCredentials 10-2. XSRF Protection 10-3. Upload and Download Progress Monitoring 10-4. HTTP Authorization 10-5. Custom Valid Status Codes 10-6. Custom Parameter Serialization 10-7. baseURL 10-8. Static Method Extensions
# 11. ts-axios 单元测试
11-1. Foreword 11-2. Jest Installation and Configuration 11-3. Helper Module Unit Tests 11-4. Request Module Unit Tests 11-5. Headers Module Unit Tests 11-6. Axios Instance Module Unit Tests 11-7. Interceptor Module Unit Tests 11-8. mergeConfig Module Unit Tests 11-9. Request Cancellation Module Unit Tests 11-10. Remaining Module Unit Tests
# 12. ts-axios 部署与发布
12-1. ts-axios Compilation and Publishing 12-2. Importing the ts-axios Library
Last Updated: 2026/03/21, 12:14:36
React - Notes
Git - Study Notes

← React - Notes Git - Study Notes→

Recent Updates
01
How I Discovered Disposable Email — A True Story
06-12
02
Animations in Grid Layout
09-15
03
Renaming a Git Branch
08-11
More Articles >
Theme by VDone | Copyright © 2026-2026 Nikolay Tuzov | MIT License | Telegram
  • Auto
  • Light Mode
  • Dark Mode
  • Reading Mode