Skip to content

Fix event types#51

Merged
third774 merged 3 commits intocloudflare:masterfrom
TheDuc:patch-2
Feb 9, 2022
Merged

Fix event types#51
third774 merged 3 commits intocloudflare:masterfrom
TheDuc:patch-2

Conversation

@TheDuc
Copy link
Contributor

@TheDuc TheDuc commented Dec 21, 2021

The types for the event listeners are not of type EventListener as per documentation, so you would get an error:

onPlay={(e) => console.log(e)}

Type error: Type '(e) => void' is not assignable to type '() => void'.

@TheDuc
Copy link
Contributor Author

TheDuc commented Jan 31, 2022

Any updates on this?

@third774
Copy link
Contributor

third774 commented Jan 31, 2022

Hey, @TheDuc — thanks for the PR! We'll take a look at this soon!

@third774 third774 self-requested a review February 1, 2022 03:55
Copy link
Contributor

@third774 third774 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for submitting this!

@third774 third774 self-requested a review February 9, 2022 17:15
@third774 third774 merged commit 9a6c3e3 into cloudflare:master Feb 9, 2022
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.

2 participants