Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable verbatimModuleSyntax option #702

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/__tests__/credentialManager.test.ts
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import { describe, beforeEach, test, expect } from 'vitest';

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

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