type error with react 16.3.1
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
Version
3.3.3
Environment
@types/react 16.3.4
, antd 3.4.0
Reproduction link
https://github.com/whtsky/antd-react-16.3.1-type
Steps to reproduce
npx tsc
What is expected?
compile
What is actually happening?
node_modules/antd/lib/badge/ScrollNumber.d.ts(28,81): error TS2344: Type ‘{ className: string; style: { transition: string | boolean; msTransform: string; WebkitTransform:…’ does not satisfy the constraint ‘HTMLAttributes<HTMLElement>’. Types of property ‘style’ are incompatible. Type ‘{ transition: string | boolean; msTransform: string; WebkitTransform: string; transform: string; }’ is not assignable to type ‘CSSProperties’. Types of property ‘transition’ are incompatible. Type ‘string | boolean’ is not assignable to type ‘string’. Type ‘true’ is not assignable to type ‘string’. node_modules/antd/lib/badge/ScrollNumber.d.ts(38,77): error TS2344: Type ‘{ className: string; style: { transition: string | boolean; msTransform: string; WebkitTransform:…’ does not satisfy the constraint ‘HTMLAttributes<HTMLElement>’. Types of property ‘style’ are incompatible. Type ‘{ transition: string | boolean; msTransform: string; WebkitTransform: string; transform: string; }’ is not assignable to type ‘CSSProperties’. Types of property ‘transition’ are incompatible. Type ‘string | boolean’ is not assignable to type ‘string’. Type ‘true’ is not assignable to type ‘string’.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:16
- Comments:23 (9 by maintainers)
Top GitHub Comments
as a temporary solution it works to add skipLibCheck flag to tsconfig
@whtsky I don’t see codes in your repo.