From 8e67551177990ed067384e1641d6964dcab773f7 Mon Sep 17 00:00:00 2001 From: Rijk van Zanten Date: Tue, 8 Mar 2022 01:26:07 -0500 Subject: [PATCH] Update line on methods, update TS definition to allow strings (#3802) Fixes #3140 Co-authored-by: Jay --- README.md | 2 +- index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c5d64d0..ad51996 100755 --- a/README.md +++ b/README.md @@ -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]) diff --git a/index.d.ts b/index.d.ts index b2b2766..92b7c79 100644 --- a/index.d.ts +++ b/index.d.ts @@ -74,7 +74,7 @@ export interface TransitionalOptions { export interface AxiosRequestConfig { url?: string; - method?: Method; + method?: Method | string; baseURL?: string; transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[]; transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];