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

Simplify message handlers #396

Merged

Conversation

toasted-nutbread
Copy link

This change removes the {async} declaration for message handlers, as this can be deduced by checking returnValue instanceof Promise and awaiting if true. It also removes the barely-used contentScript check on the backend, as this is probably not very useful at this point.

This can be considered a step towards improving the type safety of API; #391.

@toasted-nutbread toasted-nutbread requested a review from a team as a code owner December 19, 2023 17:25
Copy link

✔️ No visual differences introduced by this PR.

View Playwright Report (note: open the "playwright-report" artifact)

@djahandarie djahandarie added this pull request to the merge queue Dec 20, 2023
Merged via the queue into yomidevs:master with commit 3c22621 Dec 20, 2023
5 checks passed
@djahandarie djahandarie added the kind/meta The issue or PR is meta label Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/meta The issue or PR is meta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants