Skip to content

Commit

Permalink
fix(flow): use to suppress flow errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Dec 22, 2017
1 parent 64a3273 commit 172993f
Show file tree
Hide file tree
Showing 3 changed files with 4,987 additions and 2 deletions.
1 change: 0 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ module.name_mapper='.*\.scss$' -> 'empty/object'
module.name_mapper='.*\.css$' -> 'empty/object'
esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
suppress_comment= \\(.\\|\n\\)*\\flow-issue
2 changes: 1 addition & 1 deletion src/loadFeatureMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function loadFeatureMiddleware<S, A: {type: $Subtype<string>}>(
getFeatureStates?: (state: S) => ?FeatureStates,
createMiddleware?: (middlewares: {[actionType: string]: Middleware<S, A>}) => Middleware<S, A>,
} = {}
// flow-issue
// $FlowFixMe
): Middleware<S, A | FeatureAction> {
const getFeatures = config.getFeatures || ((state: any) => state && state.features)
const getFeatureStates = config.getFeatureStates || ((state: any) => state && state.featureStates)
Expand Down
Loading

0 comments on commit 172993f

Please sign in to comment.