Typescript Call Function From Variable Valve