-
Notifications
You must be signed in to change notification settings - Fork 28
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
typescript 2.8 problem with 2.27.2 #67
Comments
You probably made a mistake with the version of tsutils in your issue report (2.7.1 of this library is really old)... Anyways, that change was intentional. The function was added but only exposed once the corresponding version of TypeScript was officially released. Unfortunately supporting older versions of TypeScript is a real PITA API-wise. It would require this library to only expose type declarations for the minimum supported TS version. That would prevent adding functions like For the time being you can only stay at the older version or use An approach I'm currently investigating is splitting the modules by TS-version. You would import |
oh yes,I missed "2" in version problem in very last version : 2.27.2 and 2.27.1 is ok. I will update version on top. |
After looking into it again there are some things wrong here: the change log states the function is available as of 2.26.0 (but it was internal in that release). It was exposed in 2.27.2 ... I totally missed that commit. It should have been a minor version instead. But all of this doesn't fix your problem. |
2.27.1 is working fine, I will use that one then, at least for now... project is pretty large, I cant use |
This should be fixed in v2.28.0. A guide on how to get compatible declarations is now in the README. |
we are still on typescript 2.8 and we are having such error with latest version 2.27.2 :
on 2.27.1 it was fine because this line was under
// @internal
was this change made by accident, or we just have to stay on 2.27.1 until we upgrade to 2.9 typescript?
2.8 typescript is still supported if I read correctly your package.json
The text was updated successfully, but these errors were encountered: