Skip to content

Commit

Permalink
Flow: replace 'any' with correct types (graphql#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored and jliu670 committed Aug 14, 2020
1 parent 038fcca commit ce3126f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
specifiedRules,
type ASTVisitor,
type DocumentNode,
type ValidationRule,
type ValidationContext,
type ExecutionArgs,
type ExecutionResult,
Expand Down Expand Up @@ -80,7 +81,7 @@ export type OptionsData = {|
customValidateFn?: ?(
schema: GraphQLSchema,
documentAST: DocumentNode,
rules: $ReadOnlyArray<any>,
rules: $ReadOnlyArray<ValidationRule>,
) => $ReadOnlyArray<GraphQLError>,

/**
Expand Down Expand Up @@ -131,14 +132,14 @@ export type OptionsData = {|
* If not provided, the default field resolver is used (which looks for a
* value or method on the source value with the field's name).
*/
fieldResolver?: ?GraphQLFieldResolver<any, any>,
fieldResolver?: ?GraphQLFieldResolver<mixed, mixed>,

/**
* A type resolver function to use when none is provided by the schema.
* If not provided, the default type resolver is used (which looks for a
* `__typename` field or alternatively calls the `isTypeOf` method).
*/
typeResolver?: ?GraphQLTypeResolver<any, any>,
typeResolver?: ?GraphQLTypeResolver<mixed, mixed>,
|};

/**
Expand Down

0 comments on commit ce3126f

Please sign in to comment.