Skip to content

after update to [email protected], get error 'strategyUtil.d.ts(7,104): Type 'ReactText' does not satisfy the constraint 'string'. Type 'number' is not assignable to type 'string'.' #219

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

Closed
saintfirewater opened this issue Feb 28, 2020 · 1 comment

Comments

@saintfirewater
Copy link

Hi, I'm trying migrating to antd 4.0.
I got this error while modifying my code.

/[path]/node_modules/rc-tree-select/lib/utils/strategyUtil.d.ts
TypeScript error in /[path]/node_modules/rc-tree-select/lib/utils/strategyUtil.d.ts(7,104):
Type 'ReactText' does not satisfy the constraint 'string'.
Type 'number' is not assignable to type 'string'.  TS2344

What can I do to solve it?
Thanks.

@saintfirewater saintfirewater changed the title after update to [email protected], get error after update to [email protected], get error 'strategyUtil.d.ts(7,104): Type 'ReactText' does not satisfy the constraint 'string'. Type 'number' is not assignable to type 'string'.' Feb 28, 2020
@saintfirewater
Copy link
Author

After updating typescript to v3.9.2, error was gone. Thanks.

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

1 participant