Typescript Using Enum In Javascript The Xy