mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-05-27 12:55:20 -07:00
feat(core): add Electron runtime, services, and app composition
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import type { SubtitleProcessingControllerDeps } from '../../core/services/subtitle-processing-controller';
|
||||
|
||||
export function createBuildSubtitleProcessingControllerMainDepsHandler(
|
||||
deps: SubtitleProcessingControllerDeps,
|
||||
) {
|
||||
return (): SubtitleProcessingControllerDeps => ({
|
||||
tokenizeSubtitle: (text: string) => deps.tokenizeSubtitle(text),
|
||||
emitSubtitle: (payload) => deps.emitSubtitle(payload),
|
||||
logDebug: deps.logDebug,
|
||||
now: deps.now,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user