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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user