mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-28 06:22:45 -08:00
18 lines
763 B
TypeScript
18 lines
763 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());
|
|
}
|