Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve type of notifier
2 participants