mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-20 16:46:07 -08:00
feat(core): add Electron runtime, services, and app composition
This commit is contained in:
1 parent
448ce03fd4
commit
d3fd47f0ec
562 files changed
+69719
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import type { createHandleMpvCommandFromIpcHandler } from './ipc-bridge-actions';
|
||||
|
||||
type HandleMpvCommandFromIpcMainDeps = Parameters<typeof createHandleMpvCommandFromIpcHandler>[0];
|
||||
|
||||
export function createBuildHandleMpvCommandFromIpcMainDepsHandler(
|
||||
deps: HandleMpvCommandFromIpcMainDeps,
|
||||
) {
|
||||
return (): HandleMpvCommandFromIpcMainDeps => ({
|
||||
handleMpvCommandFromIpcRuntime: (command, options) =>
|
||||
deps.handleMpvCommandFromIpcRuntime(command, options),
|
||||
buildMpvCommandDeps: () => deps.buildMpvCommandDeps(),
|
||||
});
|
||||
}
|
||||
|
||||
export function createBuildRunSubsyncManualFromIpcMainDepsHandler<TRequest, TResult>(deps: {
|
||||
runManualFromIpc: (request: TRequest) => Promise<TResult>;
|
||||
}) {
|
||||
return () => ({
|
||||
runManualFromIpc: (request: TRequest) => deps.runManualFromIpc(request),
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user