Closed munierujp closed 10 months ago
TypeSync should already attempt to install the most compatible version, is this still an issue?
I have this
{
"dependencies": {
"react-dom": "^16.14.0"
}
}
and it gave me this
{
"devDependencies": {
"@types/react-dom": "^18.2.18"
}
}
while there is a 16.9.8 version that would be a lot closer I guess ?
Thank you everyone for your reproduction cases! I think I found the issue, working on a fix for this.
I've released typesync@0.12.0
to address this, please give it a try.
Why
https://github.com/DefinitelyTyped/DefinitelyTyped#how-do-definitely-typed-package-versions-relate-to-versions-of-the-corresponding-library
Example
current
package.json
:expected
package.json
afternpx typesync
:actual
package.json
afternpx typesync
: