Skip to content

@kaiord/core


@kaiord/core / SWIM_STROKE_TO_FIT

Variable: SWIM_STROKE_TO_FIT

const SWIM_STROKE_TO_FIT: object

Defined in: packages/core/src/domain/schemas/swim-stroke.ts:52

Bidirectional mapping from swim stroke to FIT protocol numeric values.

Used for converting KRD swim strokes to FIT format.

Type Declaration

backstroke

readonly backstroke: 1 = 1

breaststroke

readonly breaststroke: 2 = 2

butterfly

readonly butterfly: 3 = 3

drill

readonly drill: 4 = 4

freestyle

readonly freestyle: 0 = 0

im

readonly im: 5 = 5

mixed

readonly mixed: 5 = 5

Example

typescript
import { SWIM_STROKE_TO_FIT } from '@kaiord/core';

const fitValue = SWIM_STROKE_TO_FIT.freestyle; // 0