mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-03 06:12:07 -07:00
19 lines
768 B
TypeScript
19 lines
768 B
TypeScript
import { createBuildCycleSecondarySubModeMainDepsHandler } from './secondary-sub-mode-main-deps';
|
|
|
|
type CycleSecondarySubModeMainDeps = Parameters<
|
|
typeof createBuildCycleSecondarySubModeMainDepsHandler
|
|
>[0];
|
|
type CycleSecondarySubModeDeps = ReturnType<
|
|
ReturnType<typeof createBuildCycleSecondarySubModeMainDepsHandler>
|
|
>;
|
|
|
|
export function createCycleSecondarySubModeRuntimeHandler(deps: {
|
|
cycleSecondarySubModeMainDeps: CycleSecondarySubModeMainDeps;
|
|
cycleSecondarySubMode: (deps: CycleSecondarySubModeDeps) => void;
|
|
}) {
|
|
const buildCycleSecondarySubModeMainDepsHandler = createBuildCycleSecondarySubModeMainDepsHandler(
|
|
deps.cycleSecondarySubModeMainDeps,
|
|
);
|
|
return () => deps.cycleSecondarySubMode(buildCycleSecondarySubModeMainDepsHandler());
|
|
}
|