Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeing type issue with latest upgrade for estree types #770

Open
heath-freenome opened this issue Oct 31, 2023 · 2 comments
Open

Seeing type issue with latest upgrade for estree types #770

heath-freenome opened this issue Oct 31, 2023 · 2 comments

Comments

@heath-freenome
Copy link

heath-freenome commented Oct 31, 2023

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 heath-freenome changed the title Seeing type issue with latest upgrade Seeing type issue with latest upgrade for estree types Oct 31, 2023
@UuQ-designer
Copy link

I got the same problem, have you solved it?

@heath-freenome
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants