-
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
refactor(types): rename EmitterWebhookEventName -> EmitterEventName #452
Conversation
Is there any reason to? The name is still accurate, and I'd prefer being explicit for now than saving a few characters. The current name was picked to try and make it a bit clearer what the types represented, which still has value given we've only just released the new major that removes the Plus this'll be another change for TS users updating to v8, as they'll have to update their types all over again. |
I think and I think "Webhook" makes these names more similar rather than more explicit, without clarifying what they represent (since we don't emit anything else)?
Line 8 in 1891034
Line 11 in 1891034
Yes, although Line 30 in 79d9db0
|
While I agree with you about them being more consistent, I don't think the difference is great enough to counter my previous points. I'd prefer to leave the names as they are for now to give the types a chance to settle. |
I agree. The change is not worth the friction it will cause. Thanks for bringing it up @jablko, we will revisit the exported type names in future anyway. We will likely split up |
I'm happy with punting this change until then 👍 |
I'll close this PR for now as there is nothing actionable. Let's revisit once we did the split into |
Is there any objection to renaming
EmitterWebhookEventName
->EmitterEventName
, now that"*"
and"error"
have been removed?View rendered README.md