enum Enum { X = "x" as any, Y = "y" as any } interface MyObject { foo: Enum; }