Skip to content
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: improve type of notifier #274

Merged
merged 2 commits into from
Apr 21, 2023
Merged

fix: improve type of notifier #274

merged 2 commits into from
Apr 21, 2023

Conversation

spaenleh
Copy link
Member

This PR improves the type of the notifier to allow better support when used in typescript files.

The type key is set to be a string and the payload is an object with optional propoerties error and payload. Any string key with unknown value is also allowed to enable setting custom keys on the payload object.

@spaenleh spaenleh linked an issue Apr 21, 2023 that may be closed by this pull request
@spaenleh spaenleh self-assigned this Apr 21, 2023
@spaenleh spaenleh merged commit 7d6e6d3 into main Apr 21, 2023
@spaenleh spaenleh deleted the 273-improve-type-of-notifier branch May 30, 2023 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve type of notifier
2 participants