Skip to content

Commit a6a0f57

Browse files
fix(types): Minor fix for types (videojs#8466)
* fix 2 minor types * Update component.js Co-authored-by: mister-ben <git@misterben.me> --------- Co-authored-by: mister-ben <git@misterben.me>
1 parent 8cdb228 commit a6a0f57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/js/component.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ class Component {
160160
* @param {string|string[]} type
161161
* An event name or an array of event names.
162162
*
163-
* @param {Function} fn
164-
* The function to remove.
163+
* @param {Function} [fn]
164+
* The function to remove. If not specified, all listeners managed by Video.js will be removed.
165165
*/
166166
off(type, fn) {}
167167

@@ -1843,7 +1843,7 @@ class Component {
18431843
* @param {string} name
18441844
* The Name of the component to get.
18451845
*
1846-
* @return {Component}
1846+
* @return {typeof Component}
18471847
* The `Component` that got registered under the given name.
18481848
*/
18491849
static getComponent(name) {

0 commit comments

Comments
 (0)