JavaScript/typescript/error
来自康健生活
< JavaScript | typescript
标题文字
- Property 'call' does not exist on type 'object'
- 在项目中,我使用了
await this.axios.call(this.context, {抛出此错误,axios 的设定是 interface HttpInterface { axios: object; context?: Record<string, unknown>; }
- 如果改成
axios: any可消除错误,又或者这样设置 interface AxiosPropertyCall { call: any } interface HttpInterface { axios: AxiosPropertyCall; context?: Record<string, unknown>; } await this.axios.call(this.context
- 在项目中,我使用了
No categories