(input: VariantInput)
| 29 | } |
| 30 | |
| 31 | export function resolveModelVariant(input: VariantInput) { |
| 32 | if (input.selected === null) return undefined |
| 33 | if (input.selected && input.variants.includes(input.selected)) return input.selected |
| 34 | if (input.configured && input.variants.includes(input.configured)) return input.configured |
| 35 | return undefined |
| 36 | } |
| 37 | |
| 38 | export function cycleModelVariant(input: VariantInput) { |
| 39 | if (input.variants.length === 0) return undefined |
no outgoing calls
no test coverage detected