Type ReactCurrentOwner (#7648)

Simpler than ReactOwner :)
(cherry picked from commit 2559030c34)
This commit is contained in:
Christopher Chedeau
2016-10-03 17:33:03 -07:00
committed by Paul O’Shannessy
parent 2c16a6bb9d
commit db985af3c3
2 changed files with 5 additions and 1 deletions
@@ -7,10 +7,13 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ReactCurrentOwner
* @flow
*/
'use strict';
import type { ReactInstance } from 'ReactInstanceType';
/**
* Keeps track of the current owner.
*
@@ -23,7 +26,7 @@ var ReactCurrentOwner = {
* @internal
* @type {ReactComponent}
*/
current: null,
current: (null: null | ReactInstance),
};
@@ -34,4 +34,5 @@ export type ReactInstance = {
_mountImage: any,
// __DEV__
_debugID: DebugID,
_warnedAboutRefsInRender: bool,
};