Skip to content

Commit

Permalink
fix(types): Minor fix for types (#8466)
Browse files Browse the repository at this point in the history
* fix 2 minor types

* Update component.js

Co-authored-by: mister-ben <[email protected]>

---------

Co-authored-by: mister-ben <[email protected]>
  • Loading branch information
andreifilip123 and mister-ben authored Dec 4, 2023
1 parent 8cdb228 commit a6a0f57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ class Component {
* @param {string|string[]} type
* An event name or an array of event names.
*
* @param {Function} fn
* The function to remove.
* @param {Function} [fn]
* The function to remove. If not specified, all listeners managed by Video.js will be removed.
*/
off(type, fn) {}

Expand Down Expand Up @@ -1843,7 +1843,7 @@ class Component {
* @param {string} name
* The Name of the component to get.
*
* @return {Component}
* @return {typeof Component}
* The `Component` that got registered under the given name.
*/
static getComponent(name) {
Expand Down

0 comments on commit a6a0f57

Please sign in to comment.