fix(typescript): resolve 44 TypeScript errors in core components (#1004)

This commit is contained in:
Gauvain
2025-08-31 16:56:53 +02:00
committed by GitHub
parent 83c4aadbb4
commit df0b569f2d
64 changed files with 162 additions and 129 deletions

View File

@@ -56,7 +56,7 @@ export const useJobProcessor = () => {
const [queue, setQueue] = useAtom(queueAtom);
const [running, setRunning] = useAtom(runningAtom);
const [processes] = useAtom<JobStatus[]>(processesAtom);
const [settings] = useSettings();
const [settings] = useSettings(null);
useEffect(() => {
if (

View File

@@ -171,6 +171,7 @@ export type Settings = {
enableHorizontalSwipeSkip: boolean;
enableLeftSideBrightnessSwipe: boolean;
enableRightSideVolumeSwipe: boolean;
usePopularPlugin: boolean;
};
export interface Lockable<T> {
@@ -185,7 +186,7 @@ export type StreamyfinPluginConfig = {
settings: PluginLockableSettings;
};
const defaultValues: Settings = {
export const defaultValues: Settings = {
home: null,
followDeviceOrientation: true,
forceLandscapeInVideoPlayer: false,
@@ -231,6 +232,7 @@ const defaultValues: Settings = {
enableHorizontalSwipeSkip: true,
enableLeftSideBrightnessSwipe: true,
enableRightSideVolumeSwipe: true,
usePopularPlugin: true,
};
const loadSettings = (): Partial<Settings> => {