Skip to content

Commit

Permalink
fix(helpers): fix flow-types
Browse files Browse the repository at this point in the history
  • Loading branch information
mg901 committed Jan 22, 2019
1 parent 5ce947c commit 580e59a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @flow

import { DEFAULT_BREAKS } from './constants';
import type {
BreakpointsMap,
Expand All @@ -23,8 +24,8 @@ export const makeErrorMessage = (
breaks,
).join(', ')}'.`;

const isString = (value: any) => typeof value === 'string';
const isObject = (value: any) =>
const isString = (value: mixed) => typeof value === 'string';
const isObject = (value: mixed) =>
Object.prototype.toString.call(value).slice(8, -1) === 'Object';

type SetDefaultTheme = (OptionalBreakpoints) => ExactBreakpoints;
Expand Down

0 comments on commit 580e59a

Please sign in to comment.