Typescript Object Property Name From Variable Resistor