mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-09-03 03:50:02 +03:00
Fix jsdoc type imports
This commit is contained in:
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user