@bitcobblers/wod-wiki-library
Version:
A specialized markdown-like workout syntax editor and runtime for defining workouts
9 lines (8 loc) • 396 B
TypeScript
import { DistanceFragment } from '../../../fragments/DistanceFragment';
import { ICodeStatement } from '../../../CodeStatement';
/**
* Extracts the first distance fragment from a statement node
* @param node The statement node to extract from
* @returns The first distance fragment or undefined if none exists
*/
export declare function getDistance(node: ICodeStatement): DistanceFragment[];