-
Notifications
You must be signed in to change notification settings - Fork 251
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
Click, keyboard & type TypeScript types are resolved as "any" because of wrong imports in typings #594
Comments
Might be that removing the typings folder and adding declarations of the JS modules in |
Maybe it would be better to do it the same way as other I can try fixing it if you agree. |
If you fix the typings, I would of course merge it as a fix for now. 🚀 The seperate typings are necessary because the libraries have been written in JS. I converted a part of this one to TS and planning to convert the rest. So seperate definition files for already converted modules are duplicates that we have to update and review by hand. The cleaner solution would be to convert Eventually the solution has to be to convert the remaining JS modules to discover the false type assumptions that might be hidden in the code. |
🎉 This issue has been resolved in version 13.0.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
@mkapal Thanks a lot for the reports. Please check out the new version. 😃 |
@all-contributors add @mkapal bug |
I've put up a pull request to add @mkapal! 🎉 |
Unfortunately, it is still not correct. Now the distributed For example, the bundled export function click(element: any, init: any, { skipHover, clickCount }?: {
skipHover?: boolean | undefined;
clickCount?: number | undefined;
}): void;
export function dblClick(element: any, init: any): void; |
See #596 (comment) Rollup removed the references to |
🎉 This issue has been resolved in version 13.0.4 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
@testing-library/dom
version: 7.30.0@testing-library/user-event
version: 13.0.1typescript
version: 4.2.3Problem description:
The file
typings/index.d.ts
contains type imports from../src/
folder, which does not exist in the distributed package, so all those types are resolved toany
.Codesandbox: https://codesandbox.io/s/romantic-shadow-uio28
typings/index.d.ts
in the correspondingnode_modules
folder:This concerns the following types:
The text was updated successfully, but these errors were encountered: