mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix nullable types
This commit is contained in:
parent
b034c01240
commit
7cc484b3ec
2 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ function containsAnyClass(classList, classNames) {
|
|||
* Returns parent of element with one of specified class names.
|
||||
* @param {HTMLElement} elem - Element whose parent need to find.
|
||||
* @param {(string|Array)} classNames - Class name or array of class names.
|
||||
* @returns {HTMLElement} Parent with one of specified class names.
|
||||
* @returns {HTMLElement|null} Parent with one of specified class names.
|
||||
*/
|
||||
export function parentWithClass(elem, classNames) {
|
||||
// accept both string and array passed in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue