Skip to content

Commit

Permalink
Fix Flow error
Browse files Browse the repository at this point in the history
This one was a legitimate mis-typing, so I am not sure why Flow used to
be blind to the error when this exact same file lived two levels higher
in the repo.

Oh well. ¯\_(ツ)_/¯

Confirmed that the sole caller of `validateWithCustomRules` is indeed
passing in a `DocumentNode` and not `ASTNode`, because the value is
coming from `parse` in the `graphql` package (which returns a
`DocumentNode`).
  • Loading branch information
wincent committed Feb 17, 2017
1 parent 54f2e78 commit fc657de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @flow
*/

import type {ASTNode} from 'graphql/language';
import type {DocumentNode} from 'graphql/language';
import type {GraphQLError} from 'graphql/error';
import type {GraphQLSchema} from 'graphql/type';
import type {CustomValidationRule} from 'graphql-language-service-types';
Expand All @@ -21,7 +21,7 @@ import {visitUsingRules} from 'graphql/validation/validate';
*/
export function validateWithCustomRules(
schema: GraphQLSchema,
ast: ASTNode,
ast: DocumentNode,
customRules?: Array<CustomValidationRule>,
): Array<GraphQLError> {
// Because every fragment is considered for determing model subsets that may
Expand Down

0 comments on commit fc657de

Please sign in to comment.