Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个 Facebook 示例展示了 Hack 转换器如何从和函数中删除Transformable类型提示。为什么?是一些内置的 Hack 接口或类吗?transform()wonderland()Transformable
Transformable
transform()
wonderland()
这根本不是什么特别的东西。这只是任意类型注释的一个示例。该工具所做的其中一件事是删除类型注释,例如Transformable(假设您有一个名为Transformable自己的类)、或Foo、或Blah、或您定义的任何其他类。根本没有什么特别之处Transformable。
Foo
Blah