import type { ComputedValues } from 'stores/calculation/values/computed'; function wrapElementsMap>(arg: T) { return arg; } const elementsToComputed = wrapElementsMap({ labelLeaseObjectRisk: 'leaseObjectRiskName', tbxInsKaskoPriceLeasePeriod: 'insKaskoPriceLeasePeriod', labelIrrInfo: 'irrInfo', labelRegistrationDescription: 'registrationDescription', }); export type Elements = keyof typeof elementsToComputed; export function getComputedValueName(elementName: Elements) { return elementsToComputed[elementName]; }