diff --git a/src/apiclient.d.ts b/src/apiclient.d.ts index 48cc65df0d..1b66d8a457 100644 --- a/src/apiclient.d.ts +++ b/src/apiclient.d.ts @@ -1,7 +1,7 @@ // TODO: Move to jellyfin-apiclient /* eslint-disable @typescript-eslint/no-explicit-any */ declare module 'jellyfin-apiclient' { - import { + import type { AllThemeMediaResult, AuthenticationResult, BaseItemDto, diff --git a/src/components/dashboard/users/UserCardBox.tsx b/src/components/dashboard/users/UserCardBox.tsx index 0346e8d264..f0333712a4 100644 --- a/src/components/dashboard/users/UserCardBox.tsx +++ b/src/components/dashboard/users/UserCardBox.tsx @@ -1,4 +1,4 @@ -import { UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; +import type { UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; import React, { FunctionComponent } from 'react'; import { formatDistanceToNow } from 'date-fns'; import { localeWithSuffix } from '../../../scripts/dfnshelper'; diff --git a/src/components/dashboard/users/UserPasswordForm.tsx b/src/components/dashboard/users/UserPasswordForm.tsx index 7a43446901..7e15423918 100644 --- a/src/components/dashboard/users/UserPasswordForm.tsx +++ b/src/components/dashboard/users/UserPasswordForm.tsx @@ -1,4 +1,4 @@ -import { UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; +import type { UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; import React, { FunctionComponent, useCallback, useEffect, useRef } from 'react'; import Dashboard from '../../../utils/dashboard'; import globalize from '../../../scripts/globalize'; diff --git a/src/components/search/LiveTVSearchResults.tsx b/src/components/search/LiveTVSearchResults.tsx index b79a24c3be..dd3141ef04 100644 --- a/src/components/search/LiveTVSearchResults.tsx +++ b/src/components/search/LiveTVSearchResults.tsx @@ -1,4 +1,4 @@ -import { BaseItemDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; +import type { BaseItemDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; import classNames from 'classnames'; import { ApiClient } from 'jellyfin-apiclient'; import React, { FunctionComponent, useEffect, useState } from 'react'; diff --git a/src/components/search/SearchResults.tsx b/src/components/search/SearchResults.tsx index a54e568a3c..bf499b7567 100644 --- a/src/components/search/SearchResults.tsx +++ b/src/components/search/SearchResults.tsx @@ -1,4 +1,4 @@ -import { BaseItemDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; +import type { BaseItemDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; import classNames from 'classnames'; import { ApiClient } from 'jellyfin-apiclient'; import React, { FunctionComponent, useEffect, useState } from 'react'; diff --git a/src/components/search/SearchResultsRow.tsx b/src/components/search/SearchResultsRow.tsx index 6830085052..751ca7ee99 100644 --- a/src/components/search/SearchResultsRow.tsx +++ b/src/components/search/SearchResultsRow.tsx @@ -1,4 +1,4 @@ -import { BaseItemDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; +import type { BaseItemDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; import React, { FunctionComponent, useEffect, useRef } from 'react'; import cardBuilder from '../cardbuilder/cardBuilder'; diff --git a/src/components/search/SearchSuggestions.tsx b/src/components/search/SearchSuggestions.tsx index abc24eb7f6..57f8e8dee0 100644 --- a/src/components/search/SearchSuggestions.tsx +++ b/src/components/search/SearchSuggestions.tsx @@ -1,4 +1,4 @@ -import { BaseItemDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; +import type { BaseItemDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; import escapeHtml from 'escape-html'; import React, { FunctionComponent, useEffect, useState } from 'react'; diff --git a/src/routes/user/useredit.tsx b/src/routes/user/useredit.tsx index f02216521c..425c7af59d 100644 --- a/src/routes/user/useredit.tsx +++ b/src/routes/user/useredit.tsx @@ -1,4 +1,4 @@ -import { SyncPlayUserAccessType, UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; +import type { SyncPlayUserAccessType, UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; import React, { FunctionComponent, useCallback, useEffect, useState, useRef } from 'react'; import Dashboard from '../../utils/dashboard'; import globalize from '../../scripts/globalize'; diff --git a/src/routes/user/userlibraryaccess.tsx b/src/routes/user/userlibraryaccess.tsx index 9ebeadd1ad..c4ed721f42 100644 --- a/src/routes/user/userlibraryaccess.tsx +++ b/src/routes/user/userlibraryaccess.tsx @@ -1,4 +1,4 @@ -import { UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; +import type { UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; import React, { FunctionComponent, useCallback, useEffect, useState, useRef } from 'react'; import loading from '../../components/loading/loading'; diff --git a/src/routes/user/userparentalcontrol.tsx b/src/routes/user/userparentalcontrol.tsx index 642187e6d0..3a1d53b3ba 100644 --- a/src/routes/user/userparentalcontrol.tsx +++ b/src/routes/user/userparentalcontrol.tsx @@ -1,4 +1,5 @@ -import { AccessSchedule, DynamicDayOfWeek, ParentalRating, UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; +import type { AccessSchedule, ParentalRating, UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; +import { DynamicDayOfWeek } from '@thornbill/jellyfin-sdk/dist/generated-client/models/dynamic-day-of-week'; import React, { FunctionComponent, useCallback, useEffect, useState, useRef } from 'react'; import globalize from '../../scripts/globalize'; import LibraryMenu from '../../scripts/libraryMenu'; diff --git a/src/routes/user/userprofile.tsx b/src/routes/user/userprofile.tsx index 1c7c9a5220..c97605e36f 100644 --- a/src/routes/user/userprofile.tsx +++ b/src/routes/user/userprofile.tsx @@ -1,4 +1,5 @@ -import { ImageType, UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; +import type { UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; +import { ImageType } from '@thornbill/jellyfin-sdk/dist/generated-client/models/image-type'; import React, { FunctionComponent, useEffect, useState, useRef, useCallback } from 'react'; import Dashboard from '../../utils/dashboard'; diff --git a/src/routes/user/userprofiles.tsx b/src/routes/user/userprofiles.tsx index 2da053d0f8..704eca818c 100644 --- a/src/routes/user/userprofiles.tsx +++ b/src/routes/user/userprofiles.tsx @@ -1,4 +1,4 @@ -import { UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; +import type { UserDto } from '@thornbill/jellyfin-sdk/dist/generated-client'; import React, {FunctionComponent, useEffect, useState, useRef} from 'react'; import Dashboard from '../../utils/dashboard'; import globalize from '../../scripts/globalize';