Flow: bool -> boolean (#7650)
Paul O’Shannessy committed
Sep 2, 2016 at 17:35 UTC
7b247f3609ad25d79ae267b4b5c919a35da45cb4
12 files changed
+13
-13
src/isomorphic/classic/element/ReactElementType.js
+1
-1
@@ -29,7 +29,7 @@ export type ReactElement = {
29
30
// __DEV__
31
_store: {
32
- validated: bool,
32
+ validated: boolean,
33
},
34
_self: ReactElement,
35
_shadowChildren: any,
src/isomorphic/hooks/ReactComponentTreeHook.js
+1
-1
@@ -297,7 +297,7 @@ var ReactComponentTreeHook = {
297
unmountedIDs.length = 0;
298
},
299
300
- isMounted(id: DebugID): bool {
300
+ isMounted(id: DebugID): boolean {
301
var item = getItem(id);
302
return item ? item.isMounted : false;
303
},
src/renderers/native/ReactNativeTagHandles.js
+1
-1
@@ -48,7 +48,7 @@ var ReactNativeTagHandles = {
48
);
49
},
50
51
- reactTagIsNativeTopRootID: function(reactTag: number): bool {
51
+ reactTagIsNativeTopRootID: function(reactTag: number): boolean {
52
// We reserve all tags that are 1 mod 10 for native root views
53
return reactTag % 10 === 1;
54
},
src/renderers/native/__mocks__/deepDiffer.js
+1
-1
@@ -11,7 +11,7 @@
11
12
// TODO: Move deepDiffer into react
13
14
-var deepDiffer = function(one: any, two: any): bool {
14
+var deepDiffer = function(one: any, two: any): boolean {
15
if (one === two) {
16
// Short circuit on identical object references instead of traversing them.
17
return false;
src/renderers/shared/ReactDebugTool.js
+2
-2
@@ -254,7 +254,7 @@ function resumeCurrentLifeCycleTimer() {
254
}
255
256
var lastMarkTimeStamp = 0;
257
-var canUsePerformanceMeasure: bool =
257
+var canUsePerformanceMeasure: boolean =
258
// $FlowFixMe https://github.com/facebook/flow/issues/2345
259
typeof performance !== 'undefined' &&
260
typeof performance.mark === 'function' &&
@@ -323,7 +323,7 @@ var ReactDebugTool = {
323
}
324
}
325
},
326
- isProfiling(): bool {
326
+ isProfiling(): boolean {
327
return isProfiling;
328
},
329
beginProfiling(): void {
src/renderers/shared/fiber/ReactFiberReconciler.js
+1
-1
@@ -40,7 +40,7 @@ export type HostConfig<T, P, I, C> = {
40
updateContainer(containerInfo : C, children : HostChildren<I>) : void;
41
42
createInstance(type : T, props : P, children : HostChildren<I>) : I,
43
- prepareUpdate(instance : I, oldProps : P, newProps : P, children : HostChildren<I>) : bool,
43
+ prepareUpdate(instance : I, oldProps : P, newProps : P, children : HostChildren<I>) : boolean,
44
commitUpdate(instance : I, oldProps : P, newProps : P, children : HostChildren<I>) : void,
45
deleteInstance(instance : I) : void,
46
src/renderers/shared/fiber/ReactFiberRoot.js
+1
-1
@@ -22,7 +22,7 @@ export type FiberRoot = {
22
// The currently active root fiber. This is the mutable root of the tree.
23
current: Fiber,
24
// Determines if this root has already been added to the schedule for work.
25
- isScheduled: bool,
25
+ isScheduled: boolean,
26
// The work schedule is a linked list.
27
nextScheduledRoot: ?FiberRoot,
28
};
src/renderers/shared/stack/reconciler/ReactInstanceType.js
+1
-1
@@ -34,5 +34,5 @@ export type ReactInstance = {
34
_mountImage: any,
35
// __DEV__
36
_debugID: DebugID,
37
- _warnedAboutRefsInRender: bool,
37
+ _warnedAboutRefsInRender: boolean,
38
};
src/renderers/shared/stack/reconciler/ReactOwner.js
+1
-1
@@ -21,7 +21,7 @@ import type { ReactInstance } from 'ReactInstanceType';
21
* @return {boolean} True if `object` is a valid owner.
22
* @final
23
*/
24
-function isValidOwner(object: any): bool {
24
+function isValidOwner(object: any): boolean {
25
return !!(
26
object &&
27
typeof object.attachRef === 'function' &&
src/renderers/shared/stack/reconciler/ReactRef.js
+1
-1
@@ -53,7 +53,7 @@ ReactRef.attachRefs = function(
53
ReactRef.shouldUpdateRefs = function(
54
prevElement: ReactElement | string | number | null | false,
55
nextElement: ReactElement | string | number | null | false,
56
-): bool {
56
+): boolean {
57
// If either the owner or a `ref` has changed, make sure the newest owner
58
// has stored a reference to `this`, and the previous owner (if different)
59
// has forgotten the reference to `this`. We use the element instead
src/renderers/shared/utils/Transaction.js
+1
-1
@@ -103,7 +103,7 @@ var TransactionImpl = {
103
*/
104
getTransactionWrappers: null,
105
106
- isInTransaction: function(): bool {
106
+ isInTransaction: function(): boolean {
107
return !!this._isInTransaction;
108
},
109
src/renderers/shared/utils/isTextInputElement.js
+1
-1
@@ -33,7 +33,7 @@ var supportedInputTypes: {[key: string]: true | void} = {
33
'week': true,
34
};
35
36
-function isTextInputElement(elem: ?HTMLElement): bool {
36
+function isTextInputElement(elem: ?HTMLElement): boolean {
37
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
38
39
if (nodeName === 'input') {