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
method property is now Method | string in axios, causing this kind of compilation error.
Type 'AxiosRequestConfig<any>' is not assignable to type 'AxiosRequestConfig'.
Types of property 'method' are incompatible.
Type 'string | undefined' is not assignable to type 'Method | undefined'.
Type 'string' is not assignable to type 'Method | undefined'.
Is there an existing issue for this?
Current behavior
Axios >= 0.27 type definitions are not compatible with those declared in https://github.com/nestjs/terminus/blob/master/lib/health-indicator/http/axios.interfaces.ts.
method
property is nowMethod | string
in axios, causing this kind of compilation error.Minimum reproduction code
Steps to reproduce
No response
Expected behavior
Best would be to use axios typings in axios package.
Package version
9.1.1
NestJS version
9.1.2
Node.js version
16.17.0
In which operating systems have you tested?
Other
Typescript 4.8
The text was updated successfully, but these errors were encountered: