You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type error: Property'headers'ismissingintype'{}'butrequiredintype'AxiosRequestConfig<any>'.35|* @throws{RequiredError}36|*/>37|usersGet: async(options: AxiosRequestConfig={}): Promise<RequestArgs>=>{|^38|constlocalVarPath=`/users`;39|// use dummy base URL string because the URL constructor only accepts absolute URLs.40|constlocalVarUrlObj=newURL(localVarPath,DUMMY_BASE_URL);
Alesion30
changed the title
[BUG] Type error: Property 'headers' is missing in type '{}' but required in type 'AxiosRequestConfig<any>'.
[BUG][typescript-axios] Type error: Property 'headers' is missing in type '{}' but required in type 'AxiosRequestConfig<any>'.
Jan 20, 2023
Alesion30
changed the title
[BUG][typescript-axios] Type error: Property 'headers' is missing in type '{}' but required in type 'AxiosRequestConfig<any>'.
[BUG][typescript-axios] Type error due to AxiosRequestConfig headers no longer being optional
Jan 20, 2023
Bug Report Checklist
Description
Using typescript-axios, type error because headers in AxiosRequestConfig is no longer optional since axios@1.2.3.
AxiosRequestConfig(axios@1.2.3)
AxiosRequestConfig(axios@1.2.2)
openapi-generator version
6.2.1
OpenAPI declaration file content or url
Generation Details
Using openapi-generator-cli.
Steps to reproduce
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: