2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Update line on methods, update TS definition to allow strings (#3802)

Fixes #3140

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Rijk van Zanten
2022-03-08 01:26:07 -05:00
committed by GitHub
parent 224ed940e1
commit 8e67551177
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ axios('/user/12345');
### Request method aliases
For convenience aliases have been provided for all supported request methods.
For convenience, aliases have been provided for all common request methods.
##### axios.request(config)
##### axios.get(url[, config])
Vendored
+1 -1
View File
@@ -74,7 +74,7 @@ export interface TransitionalOptions {
export interface AxiosRequestConfig<D = any> {
url?: string;
method?: Method;
method?: Method | string;
baseURL?: string;
transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];