mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
refactor(main): type annotate subsync runtime deps helper
This commit is contained in:
@@ -159,6 +159,7 @@ import {
|
|||||||
import { runOverlayShortcutLocalFallback } from "./core/services/overlay-shortcut-handler";
|
import { runOverlayShortcutLocalFallback } from "./core/services/overlay-shortcut-handler";
|
||||||
import { runAppReadyRuntimeService } from "./core/services/startup-service";
|
import { runAppReadyRuntimeService } from "./core/services/startup-service";
|
||||||
import type { AppReadyRuntimeDeps } from "./core/services/startup-service";
|
import type { AppReadyRuntimeDeps } from "./core/services/startup-service";
|
||||||
|
import type { SubsyncRuntimeDeps } from "./core/services/subsync-runner-service";
|
||||||
import {
|
import {
|
||||||
applyRuntimeOptionResultRuntimeService,
|
applyRuntimeOptionResultRuntimeService,
|
||||||
cycleRuntimeOptionFromIpcRuntimeService,
|
cycleRuntimeOptionFromIpcRuntimeService,
|
||||||
@@ -1217,7 +1218,7 @@ const numericShortcutRuntime = createNumericShortcutRuntimeService({
|
|||||||
const multiCopySession = numericShortcutRuntime.createSession();
|
const multiCopySession = numericShortcutRuntime.createSession();
|
||||||
const mineSentenceSession = numericShortcutRuntime.createSession();
|
const mineSentenceSession = numericShortcutRuntime.createSession();
|
||||||
|
|
||||||
function getSubsyncRuntimeDeps() {
|
function getSubsyncRuntimeDeps(): SubsyncRuntimeDeps {
|
||||||
return {
|
return {
|
||||||
getMpvClient: () => appState.mpvClient,
|
getMpvClient: () => appState.mpvClient,
|
||||||
getResolvedSubsyncConfig: () => getSubsyncConfig(getResolvedConfig().subsync),
|
getResolvedSubsyncConfig: () => getSubsyncConfig(getResolvedConfig().subsync),
|
||||||
|
|||||||
Reference in New Issue
Block a user