Skip to content

Commit

Permalink
Merge pull request #702 from 3flex/verbatimModuleSyntax
Browse files Browse the repository at this point in the history
Enable verbatimModuleSyntax option
  • Loading branch information
nielsvanvelzen authored Nov 12, 2024
2 parents 8b30991 + 133d489 commit 9890f9f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/credentialManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, beforeEach, test, expect } from 'vitest';

import {
credentialManager,
ServerCredential
type ServerCredential
} from '../components/credentialManager';

const serverId1 = 'f4486b851af24255b3305fe614b81f01';
Expand Down
2 changes: 1 addition & 1 deletion src/components/jellyfinActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/components/maincontroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions src/components/playbackManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
Expand Down
7 changes: 5 additions & 2 deletions src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"allowJs": true,
"isolatedModules": true,
"sourceMap": true,
"outDir": "./dist/",
"verbatimModuleSyntax": true,
"strict": true,
"baseUrl": "./src",
"paths": {
Expand Down

0 comments on commit 9890f9f

Please sign in to comment.