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

feat: use event payload type for emitSnapKeyringEvent #203

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ccharly
Copy link
Collaborator

@ccharly ccharly commented Feb 11, 2025

The current emitSnapKeyringEvent was using a generic payload type. We were already using superstruct under the hood to check that payload, but the error was then thrown at runtime.

This new implementation allows to extract the actual payload type associated with the event to get errors at compile-time.

@ccharly ccharly requested a review from a team as a code owner February 11, 2025 17:35
@ccharly ccharly changed the title feat: use event payload type for emitSnapKeyringEvent feat: use event payload type for emitSnapKeyringEvent Feb 12, 2025
@ccharly ccharly force-pushed the feat/typed-emit-keyring-event branch 2 times, most recently from 60eab8f to d4f37e4 Compare February 12, 2025 16:34
@ccharly ccharly force-pushed the feat/typed-emit-keyring-event branch from d4f37e4 to aa77804 Compare February 12, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant