Typescript Variable With Multiple Types In Input