tree
tree copied to clipboard
Seeing type issue with latest upgrade for estree types
I'm getting the error below when I'm upgrading types in my antd
implementation:
- "@types/estree": "^1.0.1",
+ "@types/estree": "^1.0.4",
There seems to be a typing issue with the latest library
node_modules/antd/node_modules/rc-tree/lib/interface.d.ts:59:70 - error TS2344: Type 'DateType' does not satisfy the constraint 'BasicDataNode'.
59 export type KeyEntities<DateType = any> = Record<SafeKey, DataEntity<DateType>>;
~~~~~~~~
node_modules/antd/node_modules/rc-tree/lib/interface.d.ts:59:25
59 export type KeyEntities<DateType = any> = Record<SafeKey, DataEntity<DateType>>;
~~~~~~~~~~~~~~
This type parameter might need an `extends BasicDataNode` constraint.
BasicDataNode
is a type from estree
I got the same problem, have you solved it?
@UuQ-designer I have not. I'm hoping the library owners do, soon. @MadCcc ?