mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
fix(typescript): resolve 44 TypeScript errors in core components (#1004)
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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> => {
|
||||
|
||||
Reference in New Issue
Block a user