Typescript Use String As Variable Resistor