File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ if (isNode) {
2727 defaultHeaders [ "Content-Type" ] = "application/json" ;
2828}
2929
30- const isFormData = ( data : FormData | object | undefined ) =>
30+ const isFormData = ( data : FormData | object | null | undefined ) =>
3131 typeof FormData !== "undefined" && data instanceof FormData ;
3232
3333// To transform header value string to an object:
@@ -60,7 +60,7 @@ const getChallengeExtraParams = (headers: Headers): Record<string, string> => {
6060export const request = async (
6161 url : string ,
6262 method : string ,
63- data ?: FormData | object | undefined ,
63+ data ?: FormData | object | null | undefined ,
6464 additionalHeaders : Record < string , string > = { } ,
6565 retryNumber = 0 ,
6666 options : RequestOptions = { } ,
@@ -186,7 +186,7 @@ export const request = async (
186186export const authenticatedRequest = async (
187187 url : string ,
188188 method = "GET" ,
189- data ?: FormData | object | undefined ,
189+ data ?: FormData | object | null | undefined ,
190190 additionalHeaders : Record < string , string > = { } ,
191191 retryNumber = 0 ,
192192 options : RequestOptions = { } ,
You can’t perform that action at this time.
0 commit comments