Fix jsdoc type imports

This commit is contained in:
Bill Thornton
2026-03-19 13:00:30 -04:00
parent b17bb7e8fb
commit 9eed14cb2d
2 changed files with 2 additions and 8 deletions
@@ -1,6 +1,3 @@
// NOTE: This is used for jsdoc return type
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { Api } from '@jellyfin/sdk';
import { Credentials, ApiClient } from 'jellyfin-apiclient';
import { appHost } from 'components/apphost';
@@ -118,7 +115,7 @@ class ServerConnections extends ConnectionManager {
/**
* Gets the Api that is currently connected.
* @returns {Api|undefined} The current Api instance.
* @returns {import(@jellyfin/sdk).Api|undefined} The current Api instance.
*/
getCurrentApi() {
const apiClient = this.currentApiClient();
+1 -4
View File
@@ -1,8 +1,5 @@
import escapeHtml from 'escape-html';
import Headroom from 'headroom.js';
// NOTE: Used for jsdoc
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { ApiClient } from 'jellyfin-apiclient';
import { AppFeature } from 'constants/appFeature';
import { getUserViewsQuery } from 'hooks/useUserViews';
@@ -722,7 +719,7 @@ function setTabs (type, selectedIndex, builder) {
/**
* Fetch the server name and update the document title.
* @param {ApiClient} [_apiClient] The current api client.
* @param {import('jellyfin-apiclient').ApiClient} [_apiClient] The current api client.
*/
const fetchServerName = (_apiClient) => {
_apiClient