tree icon indicating copy to clipboard operation
tree copied to clipboard

Seeing type issue with latest upgrade for estree types

Open heath-freenome opened this issue 1 year ago • 2 comments

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

heath-freenome avatar Oct 31 '23 21:10 heath-freenome

I got the same problem, have you solved it?

UuQ-designer avatar Nov 12 '23 13:11 UuQ-designer

@UuQ-designer I have not. I'm hoping the library owners do, soon. @MadCcc ?

heath-freenome avatar Nov 13 '23 20:11 heath-freenome