1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-02 06:32:07 +02:00

fix(types): Minor fix for types (#8466)

* fix 2 minor types

* Update component.js

Co-authored-by: mister-ben <git@misterben.me>

---------

Co-authored-by: mister-ben <git@misterben.me>
This commit is contained in:
Andrei Filip 2023-12-04 20:10:27 +01:00 committed by GitHub
parent 8cdb228654
commit a6a0f577e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {}
@ -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) {