[Fiber] Add types for ReactFiber and ReactChildFiber#8072
[Fiber] Add types for ReactFiber and ReactChildFiber#8072gaearon merged 2 commits intofacebook:masterfrom
Conversation
|
Let's get it in, @sebmarkbage can tweak types later if he needs to. 😉 |
|
This is great! On a meta-level though. Currently Fiber isn't properly typed. It has a bunch of |
|
I got it, that makes sense! Thanks! |
* Add Types for ReactFiber * Add Types for ReactChildFiber
It might be unnecessary because Flow can infer their return types.
But I think the type annotations for ReactFiber in this is valuable because it's module boundaries.