如图
- 发布:2021-10-12 10:24
- 更新:2022-03-15 20:22
- 阅读:1491
产品分类: 其他/5+ SDK
操作步骤:
预期结果:
如图
如图
实际结果:
如图
如图
bug描述:
在@dcloudio/types中缺少必要的返回类型,导致eslint检查报错
ERROR in D:/project/ccqlk-dx/ccqlk-dx-web-vue-app/node_modules/@dcloudio/types/uni-app/cloud.d.ts(2576,9):
2576:9 'addInterceptor', which lacks return-type annotation, implicitly has an 'any' return type.
2574 | */
2575 | on(eventName: string, callbaack: (result: any) => void): any;
2576 | addInterceptor(apiName: string, interceptor: (result: any) => void);
| ^
2577:9 'removeInterceptor', which lacks return-type annotation, implicitly has an 'any' return type.
2575 | on(eventName: string, callbaack: (result: any) => void): any;
2576 | addInterceptor(apiName: string, interceptor: (result: any) => void);
2577 | removeInterceptor(apiName: string, interceptor?: (result: any) => void);
| ^
2578 | }
2579 |
2580 | interface InterceptorMap {
Version: typescript 4.3.5
Time: 7689ms