import { IntervalType, SourceLocation } from "./parser/tokenizer"; import { Duration } from "./Duration"; import { Intensity } from "./Intensity"; export type Workout = { name: string; author: string; description: string; tags: string[]; intervals: Interval[]; }; export type Interval = { type: IntervalType; duration: Duration; intensity: Intensity; cadence?: number; comments: Comment[]; }; export type Comment = { offset: Duration; text: string; loc: SourceLocation; };