diff --git a/src/__tests__/credentialManager.test.ts b/src/__tests__/credentialManager.test.ts index b4cd27cc..471ca38e 100644 --- a/src/__tests__/credentialManager.test.ts +++ b/src/__tests__/credentialManager.test.ts @@ -2,7 +2,7 @@ import { describe, beforeEach, test, expect } from 'vitest'; import { credentialManager, - ServerCredential + type ServerCredential } from '../components/credentialManager'; const serverId1 = 'f4486b851af24255b3305fe614b81f01'; diff --git a/src/components/jellyfinActions.ts b/src/components/jellyfinActions.ts index b886df44..5a4f48cd 100644 --- a/src/components/jellyfinActions.ts +++ b/src/components/jellyfinActions.ts @@ -15,7 +15,7 @@ import { getSenderReportingData, broadcastToMessageBus } from '../helpers'; import { AppStatus } from '../types/appStatus'; import { JellyfinApi } from './jellyfinApi'; import { DocumentManager } from './documentManager'; -import { PlaybackManager, PlaybackState } from './playbackManager'; +import { PlaybackManager, type PlaybackState } from './playbackManager'; let pingInterval: number; let lastTranscoderPing = 0; diff --git a/src/components/maincontroller.ts b/src/components/maincontroller.ts index 4046740f..feeeae72 100644 --- a/src/components/maincontroller.ts +++ b/src/components/maincontroller.ts @@ -25,10 +25,10 @@ import { } from './jellyfinActions'; import { getDeviceProfile } from './deviceprofileBuilder'; import { JellyfinApi } from './jellyfinApi'; -import { PlaybackManager, PlaybackState } from './playbackManager'; +import { PlaybackManager, type PlaybackState } from './playbackManager'; import { CommandHandler } from './commandHandler'; import { getMaxBitrateSupport } from './codecSupportHelper'; -import { PlayRequest, StreamInfo } from '~/types/global'; +import type { PlayRequest, StreamInfo } from '~/types/global'; window.castReceiverContext = cast.framework.CastReceiverContext.getInstance(); window.playerManager = window.castReceiverContext.getPlayerManager(); diff --git a/src/components/playbackManager.ts b/src/components/playbackManager.ts index 8acb9348..bba44cde 100644 --- a/src/components/playbackManager.ts +++ b/src/components/playbackManager.ts @@ -4,7 +4,7 @@ import type { PlayMethod } from '@jellyfin/sdk/lib/generated-client'; import { RepeatMode } from '@jellyfin/sdk/lib/generated-client'; -import { MediaInformationCustomData } from 'chromecast-caf-receiver/cast.framework.messages'; +import type { MediaInformationCustomData } from 'chromecast-caf-receiver/cast.framework.messages'; import { AppStatus } from '../types/appStatus'; import { broadcastConnectionErrorMessage, @@ -27,7 +27,7 @@ import { checkDirectPlay, createMediaInformation } from './maincontroller'; -import { ItemIndex, PlayRequest } from '~/types/global'; +import type { ItemIndex, PlayRequest } from '~/types/global'; export interface PlaybackState { startPositionTicks: number; diff --git a/src/helpers.ts b/src/helpers.ts index 00f34d0f..dfd1dea9 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -21,8 +21,11 @@ import { getUserApi } from '@jellyfin/sdk/lib/utils/api'; import { JellyfinApi } from './components/jellyfinApi'; -import { PlaybackManager, PlaybackState } from './components/playbackManager'; -import { BusMessage, StreamInfo } from './types/global'; +import { + PlaybackManager, + type PlaybackState +} from './components/playbackManager'; +import type { BusMessage, StreamInfo } from './types/global'; type InstantMixApiRequest = | InstantMixApiGetInstantMixFromAlbumRequest diff --git a/tsconfig.json b/tsconfig.json index 944e354b..b4410ac9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,9 +7,9 @@ "resolveJsonModule": true, "allowSyntheticDefaultImports": true, "allowJs": true, - "isolatedModules": true, "sourceMap": true, "outDir": "./dist/", + "verbatimModuleSyntax": true, "strict": true, "baseUrl": "./src", "paths": {