Declare general workout AST
This commit is contained in:
parent
ca38f96314
commit
220ca26c97
|
|
@ -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;
|
||||
};
|
||||
Loading…
Reference in New Issue