Skip to content

Commit 7b247f3

Browse files
authored
Flow: bool -> boolean (#7650)
1 parent 2559030 commit 7b247f3

File tree

12 files changed

+13
-13
lines changed

12 files changed

+13
-13
lines changed

src/isomorphic/classic/element/ReactElementType.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type ReactElement = {
2929

3030
// __DEV__
3131
_store: {
32-
validated: bool,
32+
validated: boolean,
3333
},
3434
_self: ReactElement,
3535
_shadowChildren: any,

src/isomorphic/hooks/ReactComponentTreeHook.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ var ReactComponentTreeHook = {
297297
unmountedIDs.length = 0;
298298
},
299299

300-
isMounted(id: DebugID): bool {
300+
isMounted(id: DebugID): boolean {
301301
var item = getItem(id);
302302
return item ? item.isMounted : false;
303303
},

src/renderers/native/ReactNativeTagHandles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var ReactNativeTagHandles = {
4848
);
4949
},
5050

51-
reactTagIsNativeTopRootID: function(reactTag: number): bool {
51+
reactTagIsNativeTopRootID: function(reactTag: number): boolean {
5252
// We reserve all tags that are 1 mod 10 for native root views
5353
return reactTag % 10 === 1;
5454
},

src/renderers/native/__mocks__/deepDiffer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
// TODO: Move deepDiffer into react
1313

14-
var deepDiffer = function(one: any, two: any): bool {
14+
var deepDiffer = function(one: any, two: any): boolean {
1515
if (one === two) {
1616
// Short circuit on identical object references instead of traversing them.
1717
return false;

src/renderers/shared/ReactDebugTool.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ function resumeCurrentLifeCycleTimer() {
254254
}
255255

256256
var lastMarkTimeStamp = 0;
257-
var canUsePerformanceMeasure: bool =
257+
var canUsePerformanceMeasure: boolean =
258258
// $FlowFixMe https://github.com/facebook/flow/issues/2345
259259
typeof performance !== 'undefined' &&
260260
typeof performance.mark === 'function' &&
@@ -323,7 +323,7 @@ var ReactDebugTool = {
323323
}
324324
}
325325
},
326-
isProfiling(): bool {
326+
isProfiling(): boolean {
327327
return isProfiling;
328328
},
329329
beginProfiling(): void {

src/renderers/shared/fiber/ReactFiberReconciler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export type HostConfig<T, P, I, C> = {
4040
updateContainer(containerInfo : C, children : HostChildren<I>) : void;
4141

4242
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,
4444
commitUpdate(instance : I, oldProps : P, newProps : P, children : HostChildren<I>) : void,
4545
deleteInstance(instance : I) : void,
4646

src/renderers/shared/fiber/ReactFiberRoot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type FiberRoot = {
2222
// The currently active root fiber. This is the mutable root of the tree.
2323
current: Fiber,
2424
// Determines if this root has already been added to the schedule for work.
25-
isScheduled: bool,
25+
isScheduled: boolean,
2626
// The work schedule is a linked list.
2727
nextScheduledRoot: ?FiberRoot,
2828
};

src/renderers/shared/stack/reconciler/ReactInstanceType.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ export type ReactInstance = {
3434
_mountImage: any,
3535
// __DEV__
3636
_debugID: DebugID,
37-
_warnedAboutRefsInRender: bool,
37+
_warnedAboutRefsInRender: boolean,
3838
};

src/renderers/shared/stack/reconciler/ReactOwner.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import type { ReactInstance } from 'ReactInstanceType';
2121
* @return {boolean} True if `object` is a valid owner.
2222
* @final
2323
*/
24-
function isValidOwner(object: any): bool {
24+
function isValidOwner(object: any): boolean {
2525
return !!(
2626
object &&
2727
typeof object.attachRef === 'function' &&

src/renderers/shared/stack/reconciler/ReactRef.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ReactRef.attachRefs = function(
5353
ReactRef.shouldUpdateRefs = function(
5454
prevElement: ReactElement | string | number | null | false,
5555
nextElement: ReactElement | string | number | null | false,
56-
): bool {
56+
): boolean {
5757
// If either the owner or a `ref` has changed, make sure the newest owner
5858
// has stored a reference to `this`, and the previous owner (if different)
5959
// has forgotten the reference to `this`. We use the element instead

src/renderers/shared/utils/Transaction.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ var TransactionImpl = {
103103
*/
104104
getTransactionWrappers: null,
105105

106-
isInTransaction: function(): bool {
106+
isInTransaction: function(): boolean {
107107
return !!this._isInTransaction;
108108
},
109109

src/renderers/shared/utils/isTextInputElement.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var supportedInputTypes: {[key: string]: true | void} = {
3333
'week': true,
3434
};
3535

36-
function isTextInputElement(elem: ?HTMLElement): bool {
36+
function isTextInputElement(elem: ?HTMLElement): boolean {
3737
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
3838

3939
if (nodeName === 'input') {

0 commit comments

Comments
 (0)