UNPKG

@bitcobblers/wod-wiki-library

Version:

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

9 lines (8 loc) 416 B
import { CodeFragment } from './CodeFragment'; /** * Returns all fragments of a specific type from an array of StatementFragments * @param fragments Array of StatementFragment objects to filter * @param type The type of fragments to retrieve * @returns Array of fragments matching the specified type */ export declare function getFragments<T extends CodeFragment>(fragments: CodeFragment[], type: string): T[];