What is "Transformable" in Hack language?

91 views Asked by At

This Facebook example shows, how Hack transpiler removes Transformable type hint from both transform() and wonderland() functions. Why? Is Transformable some built-in Hack interface or class?

1

There are 1 answers

2
Josh Watzman On BEST ANSWER

It's not anything special at all. It's just an example of an arbitrary type annotation. One of the things that the tool does is remove type annotations, such as Transformable (assuming you had a class called Transformable yourself), or Foo, or Blah, or any other class you define. There's nothing special about Transformable at all.