-
Notifications
You must be signed in to change notification settings - Fork 20
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 errors with v4 #81
Comments
Similar issues with TypeScript (same errors with
|
I forgot to mention that I tested typescript v4.6.4 and v4.7.3, errors occur on both versions. |
Yup, looks like the additional stricter options are calling it out. I've published a new beta ( |
I now get a bunch of warnings, but in general it seems to work: The warnings:
|
@planttheidea I think this issue occurs because you changed the |
@HitomiTenshi that was something of an intentional decision, to avoid duplication and potential type drifting. Lemme do some investigation, but I'll get this out today. |
@planttheidea Adding |
@HitoriSensei - I believe it may be related to the fact that the |
I'm still getting the same warnings with version |
Alright, take 3! Appreciate you helping debug this with me @HitomiTenshi . Another hypothesis is that it is the consumption of runtime files that is causing the warning, so I've split out all the types definitions to their own file ( |
@planttheidea Progress! Now I only get a single warning:
Edit: Maybe it really is the thing I mentioned, have you tried generating the |
Haha damn, it really doesn't like to import in that file! Alright one more, and I'm bullish on this one. I flipped the script, and made I feel confident about |
@planttheidea It works! 🥳 🎉 Although I'm curious if reverting your commit 89f5637 where you put a bunch of |
@HitomiTenshi - I definitely still get errors, and the strict checking locally still works as expected. I think this was a naivete on my end related to the limitations of I'll publish the proper patch shortly. |
@planttheidea With the latest npm package all errors disappeared for me, although I'm not using all of the functionality that this library provides. I'm still here to test if you need to, just add another comment when it's ready 😄 Thanks for all the hard work on a Sunday at this late time! (For me it is already 12:17 AM, CEST timezone). |
@HitomiTenshi - your help was greatly appreciated, and at a very late hour for you on top of that! Well, the fruits of our labor are available in |
Fixed now, thank you :) |
The latest version results in a bunch of errors when TypeScript is configured with the following settings:
tsconfig.json
Errors when trying to compile:
I already tried adding
"skipLibCheck": true
tocompilerOptions
but it did not fix it.Downgrading to version v3.0.3 fixes this issue.
The text was updated successfully, but these errors were encountered: