UNPKG

@bitcobblers/wod-wiki-library

Version:

A specialized markdown-like workout syntax editor and runtime for defining workouts

13 lines (12 loc) 590 B
import { ITimerRuntime } from '../../../ITimerRuntime'; import { JitStatement } from '../../../JitStatement'; import { IRuntimeBlock } from '../../../IRuntimeBlock'; import { IRuntimeBlockStrategy } from './IRuntimeBlockStrategy'; /** * Strategy for creating SingleBlock runtime blocks * Handles simple statements with duration and metrics but no children or repetitions */ export declare class BlockEffortStrategy implements IRuntimeBlockStrategy { canHandle(nodes: JitStatement[]): boolean; compile(nodes: JitStatement[], _runtime: ITimerRuntime): IRuntimeBlock | undefined; }