mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-28 06:22:45 -08:00
25 lines
826 B
TypeScript
25 lines
826 B
TypeScript
import type {
|
|
createApplyJellyfinMpvDefaultsHandler,
|
|
createGetDefaultSocketPathHandler,
|
|
} from './mpv-jellyfin-defaults';
|
|
|
|
type ApplyJellyfinMpvDefaultsMainDeps = Parameters<typeof createApplyJellyfinMpvDefaultsHandler>[0];
|
|
type GetDefaultSocketPathMainDeps = Parameters<typeof createGetDefaultSocketPathHandler>[0];
|
|
|
|
export function createBuildApplyJellyfinMpvDefaultsMainDepsHandler(
|
|
deps: ApplyJellyfinMpvDefaultsMainDeps,
|
|
) {
|
|
return (): ApplyJellyfinMpvDefaultsMainDeps => ({
|
|
sendMpvCommandRuntime: (client, command) => deps.sendMpvCommandRuntime(client, command),
|
|
jellyfinLangPref: deps.jellyfinLangPref,
|
|
});
|
|
}
|
|
|
|
export function createBuildGetDefaultSocketPathMainDepsHandler(
|
|
deps: GetDefaultSocketPathMainDeps,
|
|
) {
|
|
return (): GetDefaultSocketPathMainDeps => ({
|
|
platform: deps.platform,
|
|
});
|
|
}
|