From a6a0f577e13b554568fce78c9680fde8102bc5ea Mon Sep 17 00:00:00 2001 From: Andrei Filip Date: Mon, 4 Dec 2023 20:10:27 +0100 Subject: [PATCH] fix(types): Minor fix for types (#8466) * fix 2 minor types * Update component.js Co-authored-by: mister-ben --------- Co-authored-by: mister-ben --- src/js/component.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/component.js b/src/js/component.js index 08c53ff8d2..3d7d2d8f20 100644 --- a/src/js/component.js +++ b/src/js/component.js @@ -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) {