mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-30 06:12:06 -07:00
fix: replace any types in boot services with proper signatures
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { BrowserWindow } from 'electron';
|
||||||
import { ConfigStartupParseError } from '../../config';
|
import { ConfigStartupParseError } from '../../config';
|
||||||
|
|
||||||
export interface MainBootServicesParams<
|
export interface MainBootServicesParams<
|
||||||
@@ -37,7 +38,7 @@ export interface MainBootServicesParams<
|
|||||||
app: {
|
app: {
|
||||||
setPath: (name: string, value: string) => void;
|
setPath: (name: string, value: string) => void;
|
||||||
quit: () => void;
|
quit: () => void;
|
||||||
on: (...args: any[]) => unknown;
|
on: (event: any, listener: (...args: unknown[]) => void) => any;
|
||||||
whenReady: () => Promise<void>;
|
whenReady: () => Promise<void>;
|
||||||
};
|
};
|
||||||
shouldBypassSingleInstanceLock: () => boolean;
|
shouldBypassSingleInstanceLock: () => boolean;
|
||||||
@@ -58,7 +59,11 @@ export interface MainBootServicesParams<
|
|||||||
};
|
};
|
||||||
createMainRuntimeRegistry: () => TRuntimeRegistry;
|
createMainRuntimeRegistry: () => TRuntimeRegistry;
|
||||||
createOverlayManager: () => TOverlayManager;
|
createOverlayManager: () => TOverlayManager;
|
||||||
createOverlayModalInputState: (params: any) => TOverlayModalInputState;
|
createOverlayModalInputState: (params: {
|
||||||
|
getModalWindow: () => BrowserWindow | null;
|
||||||
|
syncOverlayShortcutsForModal: (isActive: boolean) => void;
|
||||||
|
syncOverlayVisibilityForModal: () => void;
|
||||||
|
}) => TOverlayModalInputState;
|
||||||
createOverlayContentMeasurementStore: (params: {
|
createOverlayContentMeasurementStore: (params: {
|
||||||
logger: TLogger;
|
logger: TLogger;
|
||||||
}) => TOverlayContentMeasurementStore;
|
}) => TOverlayContentMeasurementStore;
|
||||||
@@ -118,7 +123,7 @@ export function createMainBootServices<
|
|||||||
TSubtitleWebSocket,
|
TSubtitleWebSocket,
|
||||||
TLogger,
|
TLogger,
|
||||||
TRuntimeRegistry,
|
TRuntimeRegistry,
|
||||||
TOverlayManager extends { getModalWindow: () => unknown },
|
TOverlayManager extends { getModalWindow: () => BrowserWindow | null },
|
||||||
TOverlayModalInputState,
|
TOverlayModalInputState,
|
||||||
TOverlayContentMeasurementStore,
|
TOverlayContentMeasurementStore,
|
||||||
TOverlayModalRuntime,
|
TOverlayModalRuntime,
|
||||||
|
|||||||
Reference in New Issue
Block a user