Skip to content

Explicitly return undefined when event is undefined #518

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

Closed
wants to merge 1 commit into from

Conversation

major-mayer
Copy link

Fixes #514

@hperrin
Copy link
Owner

hperrin commented Apr 3, 2023

This is now fixed here: c551452#diff-54062c270ea651b890f69db1e1c4243b2c9033075870d648ab407cca159b67b7

That function now always returns an event, or throws an error.

@hperrin hperrin closed this Apr 3, 2023
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.

TypeScript Error "Not all code paths return a value."
2 participants