Skip to content

Commit

Permalink
Update line on methods, update TS definition to allow strings (#3802)
Browse files Browse the repository at this point in the history
Fixes #3140

Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
rijkvanzanten and jasonsaayman committed Mar 8, 2022
1 parent 224ed94 commit 8e67551
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -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[];
Expand Down

0 comments on commit 8e67551

Please sign in to comment.