Skip to content

Conversation

huang-julien
Copy link
Member

No description provided.

Copy link

vercel bot commented May 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
scripts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 17, 2024 8:57pm
scripts-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 17, 2024 8:57pm

player!.on(event, (e) => {
player!.on(event, (e: EventMap<typeof event>) => {
// @ts-expect-error ts isn't able to infer the correct event type
emits(event, e, player)
Copy link
Member Author

Choose a reason for hiding this comment

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

not sure how we could correctly infer the type here

export interface VimeoPlayerApi {
Vimeo: {
Player: VimeoPlayerApi
Player: Constructor<typeof window.Vimeo>
Copy link
Collaborator

Choose a reason for hiding this comment

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

🙌

@harlan-zw harlan-zw merged commit b930455 into main May 18, 2024
@harlan-zw harlan-zw deleted the fix/vimeo_player branch May 18, 2024 00:54
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