-
-
Notifications
You must be signed in to change notification settings - Fork 226
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 error on constructor #161
Comments
Hmmm... weird. I think it's confusing the Have you tried using |
Yup can confirm this works:
|
Okay, cool. Then TypeScript is just getting confused by the wrapper module. I'm sure there's some way to change the wrapper type definition to un-confuse TypeScript, but I don't know what that syntax would be. |
Definitely getting confused, as when i do this
I get the error
Even though in the definition file, it includes a static function Renamed the namespace $RefParser to $RefParser2 in the index.d.ts and it compiled correctly without error |
Ok looks like the problem is with json-schema-ref-parser... if i replace
with
Everything seems to work correctly.
to
Everything seems to be happy. So the CORRECT fix is for the json-schema-ref-parser package to replace it with the code index.d.ts
|
Seems like #171 will fix the constructor issues. |
🎉 This issue has been resolved in version 9.0.8 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
For anybody else that stumbles upon this issue like I did after finding that there is still an issue with the Typescript typings for this library, an acceptable solution that I found is to install Requiring/importing |
Code snippet:
Error:
The text was updated successfully, but these errors were encountered: