Files
SubMiner/src/main/runtime/numeric-shortcut-runtime-main-deps.ts
2026-03-01 02:36:51 -08:00

13 lines
531 B
TypeScript

import type { NumericShortcutRuntimeOptions } from '../../core/services/numeric-shortcut';
export function createBuildNumericShortcutRuntimeMainDepsHandler(
deps: NumericShortcutRuntimeOptions,
) {
return (): NumericShortcutRuntimeOptions => ({
globalShortcut: deps.globalShortcut,
showMpvOsd: (text: string) => deps.showMpvOsd(text),
setTimer: (handler: () => void, timeoutMs: number) => deps.setTimer(handler, timeoutMs),
clearTimer: (timer: ReturnType<typeof setTimeout>) => deps.clearTimer(timer),
});
}