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
node_modules/@tarojs/components/types/Ad.ts:47:5 - error TS7008: Member '1000' implicitly has an 'any' type.
node_modules/@tarojs/components/types/Ad.ts:53:5 - error TS7008: Member '1001' implicitly has an 'any' type.
// 还有很多...
问题描述
@tarojs/components
部分类型定义文件扩展名是.ts
而不是.d.ts
,这会导致 TS 对其进行类型检查,根据 TS 配置不同,可能会报错。参考:microsoft/TypeScript#15363
复现步骤
@tarojs/components
,并将 TS 的noImplicitAny
设置为 truetsc
期望行为
不报错
报错信息
系统信息
补充信息
将 taro-components/types 下的所有
*.ts
文件全部重命名为*.d.ts
文件,可以解决这个问题。The text was updated successfully, but these errors were encountered: