UNPKG

@bitcobblers/wod-wiki-library

Version:

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

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