Skip to content

Commit

Permalink
Flow: add missing arg name in function type (#3100)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 16, 2021
1 parent 7fb6c78 commit 27d519b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language/__tests__/predicates-test.js
Expand Up @@ -17,7 +17,7 @@ import {
isTypeExtensionNode,
} from '../predicates';

function filterNodes(predicate: (ASTNode) => boolean): Array<string> {
function filterNodes(predicate: (node: ASTNode) => boolean): Array<string> {
return Object.values(Kind).filter(
// $FlowExpectedError[speculation-ambiguous] create node only with kind
(kind) => predicate({ kind }),
Expand Down

0 comments on commit 27d519b

Please sign in to comment.