UNPKG

@bitcobblers/wod-wiki-library

Version:

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

20 lines (19 loc) 790 B
import { IRuntimeAction } from '../../IRuntimeAction'; import { ITimerRuntime } from '../../ITimerRuntime'; import { IRuntimeEvent } from '../../IRuntimeEvent'; import { EventHandler } from '../EventHandler'; /** * Handles DisplayEvents and converts them to appropriate UI update actions */ export declare class DisplayHandler extends EventHandler { protected eventType: string; match(event: IRuntimeEvent): boolean; /** * Convert DisplayEvents to SET_SPAN actions that update the UI */ protected handleEvent(_event: IRuntimeEvent, _runtime: ITimerRuntime): IRuntimeAction[]; /** * Override the parent class handle method to ensure we're using our handleEvent method */ handle(runtime: ITimerRuntime, event: IRuntimeEvent): IRuntimeAction[]; }