Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Add Types #33

Merged
merged 3 commits into from
Jul 21, 2023
Merged

Add Types #33

merged 3 commits into from
Jul 21, 2023

Conversation

evoactivity
Copy link
Collaborator

No description provided.

@evoactivity evoactivity requested a review from a team as a code owner July 21, 2023 00:33
@vercel
Copy link

vercel bot commented Jul 21, 2023

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

Name Status Preview Comments Updated (UTC)
hls-video-element ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 21, 2023 1:40pm

Copy link
Contributor

@luwes luwes left a comment

Choose a reason for hiding this comment

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

Nice! Thank you.

is load() required? the signature should be the same to native video.load()

private destroy should be private #destroy I think but I would leave private methods out.
what benefits do the private types give?
real JS private features can't be called anyway, even in runtime
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields

@evoactivity
Copy link
Collaborator Author

evoactivity commented Jul 21, 2023

I added load so it can be given a description that shows in IDE tools.
image

I typed destroy so the IDE properly tells you it's a private method instead of not existing.

Without Destroy
image

Marked as Private
image|

Copy link
Contributor

@luwes luwes left a comment

Choose a reason for hiding this comment

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

LGTM

@luwes luwes merged commit da8ab55 into muxinc:master Jul 21, 2023
3 checks passed
@evoactivity evoactivity deleted the types branch July 21, 2023 14:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants