typescript ts2416 类型瞎报错的问题
TMD 搞了大半夜 原来是这个问题
自动增加了类型 这是为什么???
解决方法:
全局搜索改类型 看下在哪里
删除掉就好了
一般是某个*.d.ts文件里写错了
```
Property ‘state’ in type ‘Marquee’ is not assignable to the same property in base type ‘Component<IMarqueeProps, any, any>’.
Type ‘{ animatedWidth: number; overflowWidth: number; }’ is missing the following properties from type ‘{ children?: ReactNode; width:
number; id: string; option: any; height: number; }’: width, id, option, height
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190629021621764.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzI2NTQwNjkz,size_16,color_FFFFFF,t_70)