mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-20 12:11:28 -07:00
13 lines
531 B
TypeScript
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),
|
|
});
|
|
}
|