2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-11 18:02:32 +03:00

chore(types): move AxiosStatic#create to AxiosInstance#create (#5096)

* Add the bad test case.

* Fix and pass the test

* Update index.d.cts

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
George Cheng
2025-03-31 12:00:51 -07:00
committed by GitHub
parent 5a9134e099
commit d1178cad4c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ axios.request<User, string>({
// Instances
const instance1: AxiosInstance = axios.create();
const instance2: AxiosInstance = axios.create(config);
const instance2: AxiosInstance = instance1.create(config);
instance1(config)
.then(handleResponse)