-
Notifications
You must be signed in to change notification settings - Fork 82
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
🚧 fix(typescript): remove new Webhooks
type arguments
#440
Conversation
Removing these are a really bad idea:
Actually, so TS can infer the value of However, either way the generic has to stay in order for the inference to work. |
Yes, that's how it worked before, too. Sorry, I should have been more clear. What I'd like is to remove the requirement to set Would that work? |
There isn't a requirement to set it - that's why it's got a default value; if TypeScript can infer the value, it will, otherwise it'll use the default value. |
But it currently is required to be set if I set |
Yeah, that's because we need a new generic argument being passed to Give me a sec and I'll push up the required change |
(btw this change seems to cause a massive spike in the amount of work TS/my IDE has to do :() |
I gotta run now. If I recall correctly, the way it worked was that the type passed to the |
Yup, and that's how it works now too - but that can't work for the This shouldn't be a problem because we're removing |
Got it, so we can resolve this as part of the breaking changes of the v8.0.0 release? |
🎉 This issue has been resolved in version 8.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This is a follow up to #292 (comment)
I really do not like that we introduced this type argument as I think there should be a way to infer it from the
transform
option if present.This should also address
from #436 (comment)
In a nutshell, this should work
Anyone up for looking into this?