Function
getOptionExerciseTypeName
(entry: OptionExerciseTypeEntry)
Source from the content-addressed store, hash-verified
| 36 | export type OptionExerciseTypeEntry = (typeof OptionExerciseType)[keyof typeof OptionExerciseType] |
| 37 | |
| 38 | function getOptionExerciseTypeName(entry: OptionExerciseTypeEntry): string { |
| 39 | for (const [key, val] of Object.entries(OptionExerciseType)) { |
| 40 | if (val === entry) return key |
| 41 | } |
| 42 | return 'Unknown' |
| 43 | } |
| 44 | |
| 45 | export class Execution { |
| 46 | execId = '' |
Tested by
no test coverage detected