@kaiord/core / targetUnitSchema
Variable: targetUnitSchema
consttargetUnitSchema:ZodEnum<{bpm:"bpm";mps:"mps";percent_ftp:"percent_ftp";percent_max:"percent_max";range:"range";rpm:"rpm";swim_stroke:"swim_stroke";watts:"watts";zone:"zone"; }>
Defined in: packages/core/src/domain/schemas/target-values/unit.ts:17
Zod schema for target unit enumeration.
Defines all possible units for target values (watts, zones, percentages, ranges, etc.).
Example
typescript
import { targetUnitSchema } from '@kaiord/core';
// Access enum values
const watts = targetUnitSchema.enum.watts;
const zone = targetUnitSchema.enum.zone;