MetricForm.ts
· 380 B · TypeScript
Raw
interface MetricForm {
sport: string;
metrics: Metric[];
name: string;
team: Team;
}
interface Metric {
name: string;
type: "shortString" | "longString" | "numericSlider" | "butttons" | "timer";
min?: number;
max?: number;
step?: number = 1;
minLength?: number;
maxLength?: number;
category: string;
allowed?: Array<string | number>;
unit?: string;
}
| 1 | interface MetricForm { |
| 2 | sport: string; |
| 3 | metrics: Metric[]; |
| 4 | name: string; |
| 5 | team: Team; |
| 6 | } |
| 7 | |
| 8 | interface Metric { |
| 9 | name: string; |
| 10 | type: "shortString" | "longString" | "numericSlider" | "butttons" | "timer"; |
| 11 | min?: number; |
| 12 | max?: number; |
| 13 | step?: number = 1; |
| 14 | minLength?: number; |
| 15 | maxLength?: number; |
| 16 | category: string; |
| 17 | allowed?: Array<string | number>; |
| 18 | unit?: string; |
| 19 | } |