From d8859ec9187f596fcf13fb7eb752a5604ba622c6 Mon Sep 17 00:00:00 2001 From: sudacode Date: Sat, 14 Feb 2026 01:28:29 -0800 Subject: [PATCH] refactor(main): type annotate subsync runtime deps helper --- src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index e11b47d..4346e9e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -159,6 +159,7 @@ import { import { runOverlayShortcutLocalFallback } from "./core/services/overlay-shortcut-handler"; import { runAppReadyRuntimeService } from "./core/services/startup-service"; import type { AppReadyRuntimeDeps } from "./core/services/startup-service"; +import type { SubsyncRuntimeDeps } from "./core/services/subsync-runner-service"; import { applyRuntimeOptionResultRuntimeService, cycleRuntimeOptionFromIpcRuntimeService, @@ -1217,7 +1218,7 @@ const numericShortcutRuntime = createNumericShortcutRuntimeService({ const multiCopySession = numericShortcutRuntime.createSession(); const mineSentenceSession = numericShortcutRuntime.createSession(); -function getSubsyncRuntimeDeps() { +function getSubsyncRuntimeDeps(): SubsyncRuntimeDeps { return { getMpvClient: () => appState.mpvClient, getResolvedSubsyncConfig: () => getSubsyncConfig(getResolvedConfig().subsync),