Declare general workout AST

This commit is contained in:
Rene Saarsoo 2020-09-18 11:08:48 +03:00
parent ca38f96314
commit 220ca26c97
1 changed files with 13 additions and 0 deletions

13
src/ast.ts Normal file
View File

@ -0,0 +1,13 @@
export type Workout = {
name: string;
author: string;
description: string;
intervals: Interval[];
};
export type Interval = {
type: "Warmup" | "Cooldown" | "Interval" | "Rest";
duration: number;
power: { from: number; to: number };
cadence?: number;
};