Small flow fixes

This commit is contained in:
Ben Alpert
2016-09-01 15:52:29 -07:00
parent 34761cf9a2
commit 0722b15752
2 changed files with 7 additions and 7 deletions

View File

@@ -305,7 +305,7 @@ function getOperations(flushHistory = getLastMeasurements()) {
return stats;
}
function printExclusive(flushHistory: FlushHistory) {
function printExclusive(flushHistory?: FlushHistory) {
if (!__DEV__) {
warnInProduction();
return;
@@ -331,7 +331,7 @@ function printExclusive(flushHistory: FlushHistory) {
consoleTable(table);
}
function printInclusive(flushHistory: FlushHistory) {
function printInclusive(flushHistory?: FlushHistory) {
if (!__DEV__) {
warnInProduction();
return;
@@ -350,7 +350,7 @@ function printInclusive(flushHistory: FlushHistory) {
consoleTable(table);
}
function printWasted(flushHistory: FlushHistory) {
function printWasted(flushHistory?: FlushHistory) {
if (!__DEV__) {
warnInProduction();
return;
@@ -369,7 +369,7 @@ function printWasted(flushHistory: FlushHistory) {
consoleTable(table);
}
function printOperations(flushHistory: FlushHistory) {
function printOperations(flushHistory?: FlushHistory) {
if (!__DEV__) {
warnInProduction();
return;

View File

@@ -16,14 +16,14 @@ import type { ReactPropTypeLocations } from 'ReactPropTypeLocations';
type NamesType = {[key: ReactPropTypeLocations]: string};
var ReactPropTypeLocationNames = {};
var ReactPropTypeLocationNames: NamesType = {};
if (__DEV__) {
ReactPropTypeLocationNames = ({
ReactPropTypeLocationNames = {
prop: 'prop',
context: 'context',
childContext: 'child context',
}: NamesType);
};
}
module.exports = ReactPropTypeLocationNames;