@samitouri / QOS-React / commits / 85f3498fda

Types Fiber as an exact object type (#10063)

Toru Kobayashi committed Jun 29, 2017 at 03:01 UTC 85f3498fdaefd9fa15394c8a0e24f1d58a8efff7
1 file changed +2 -2
src/renderers/shared/fiber/ReactFiber.js
+2 -2
@@ -66,7 +66,7 @@ if (__DEV__) {
66
67 // A Fiber is work on a Component that needs to be done or was done. There can
68 // be more than one per component.
69 -export type Fiber = {
69 +export type Fiber = {|
70 // __DEV__ only
71 _debugID?: DebugID,
72 _debugSource?: Source | null,
@@ -176,7 +176,7 @@ export type Fiber = {
176 // Conceptual aliases
177 // workInProgress : Fiber -> alternate The alternate used for reuse happens
178 // to be the same as work in progress.
179 -};
179 +|};
180
181 if (__DEV__) {
182 var debugCounter = 1;