Skip to content

Commit

Permalink
Flow: bool -> boolean (#7650)
Browse files Browse the repository at this point in the history
  • Loading branch information
zpao committed Sep 3, 2016
1 parent 2559030 commit 7b247f3
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/isomorphic/classic/element/ReactElementType.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type ReactElement = {

// __DEV__
_store: {
validated: bool,
validated: boolean,
},
_self: ReactElement,
_shadowChildren: any,
Expand Down
2 changes: 1 addition & 1 deletion src/isomorphic/hooks/ReactComponentTreeHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ var ReactComponentTreeHook = {
unmountedIDs.length = 0;
},

isMounted(id: DebugID): bool {
isMounted(id: DebugID): boolean {
var item = getItem(id);
return item ? item.isMounted : false;
},
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/native/ReactNativeTagHandles.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var ReactNativeTagHandles = {
);
},

reactTagIsNativeTopRootID: function(reactTag: number): bool {
reactTagIsNativeTopRootID: function(reactTag: number): boolean {
// We reserve all tags that are 1 mod 10 for native root views
return reactTag % 10 === 1;
},
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/native/__mocks__/deepDiffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

// TODO: Move deepDiffer into react

var deepDiffer = function(one: any, two: any): bool {
var deepDiffer = function(one: any, two: any): boolean {
if (one === two) {
// Short circuit on identical object references instead of traversing them.
return false;
Expand Down
4 changes: 2 additions & 2 deletions src/renderers/shared/ReactDebugTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function resumeCurrentLifeCycleTimer() {
}

var lastMarkTimeStamp = 0;
var canUsePerformanceMeasure: bool =
var canUsePerformanceMeasure: boolean =
// $FlowFixMe https://github.com/facebook/flow/issues/2345
typeof performance !== 'undefined' &&
typeof performance.mark === 'function' &&
Expand Down Expand Up @@ -323,7 +323,7 @@ var ReactDebugTool = {
}
}
},
isProfiling(): bool {
isProfiling(): boolean {
return isProfiling;
},
beginProfiling(): void {
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/shared/fiber/ReactFiberReconciler.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type HostConfig<T, P, I, C> = {
updateContainer(containerInfo : C, children : HostChildren<I>) : void;

createInstance(type : T, props : P, children : HostChildren<I>) : I,
prepareUpdate(instance : I, oldProps : P, newProps : P, children : HostChildren<I>) : bool,
prepareUpdate(instance : I, oldProps : P, newProps : P, children : HostChildren<I>) : boolean,
commitUpdate(instance : I, oldProps : P, newProps : P, children : HostChildren<I>) : void,
deleteInstance(instance : I) : void,

Expand Down
2 changes: 1 addition & 1 deletion src/renderers/shared/fiber/ReactFiberRoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type FiberRoot = {
// The currently active root fiber. This is the mutable root of the tree.
current: Fiber,
// Determines if this root has already been added to the schedule for work.
isScheduled: bool,
isScheduled: boolean,
// The work schedule is a linked list.
nextScheduledRoot: ?FiberRoot,
};
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/shared/stack/reconciler/ReactInstanceType.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ export type ReactInstance = {
_mountImage: any,
// __DEV__
_debugID: DebugID,
_warnedAboutRefsInRender: bool,
_warnedAboutRefsInRender: boolean,
};
2 changes: 1 addition & 1 deletion src/renderers/shared/stack/reconciler/ReactOwner.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import type { ReactInstance } from 'ReactInstanceType';
* @return {boolean} True if `object` is a valid owner.
* @final
*/
function isValidOwner(object: any): bool {
function isValidOwner(object: any): boolean {
return !!(
object &&
typeof object.attachRef === 'function' &&
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/shared/stack/reconciler/ReactRef.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ReactRef.attachRefs = function(
ReactRef.shouldUpdateRefs = function(
prevElement: ReactElement | string | number | null | false,
nextElement: ReactElement | string | number | null | false,
): bool {
): boolean {
// If either the owner or a `ref` has changed, make sure the newest owner
// has stored a reference to `this`, and the previous owner (if different)
// has forgotten the reference to `this`. We use the element instead
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/shared/utils/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ var TransactionImpl = {
*/
getTransactionWrappers: null,

isInTransaction: function(): bool {
isInTransaction: function(): boolean {
return !!this._isInTransaction;
},

Expand Down
2 changes: 1 addition & 1 deletion src/renderers/shared/utils/isTextInputElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var supportedInputTypes: {[key: string]: true | void} = {
'week': true,
};

function isTextInputElement(elem: ?HTMLElement): bool {
function isTextInputElement(elem: ?HTMLElement): boolean {
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();

if (nodeName === 'input') {
Expand Down

0 comments on commit 7b247f3

Please sign in to comment.