Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 5cc436d

Browse files
committed
Flow: replace 'any' with correct types
1 parent 8d308f4 commit 5cc436d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
specifiedRules,
1616
type ASTVisitor,
1717
type DocumentNode,
18+
type ValidationRule,
1819
type ValidationContext,
1920
type ExecutionArgs,
2021
type ExecutionResult,
@@ -80,7 +81,7 @@ export type OptionsData = {|
8081
customValidateFn?: ?(
8182
schema: GraphQLSchema,
8283
documentAST: DocumentNode,
83-
rules: $ReadOnlyArray<any>,
84+
rules: $ReadOnlyArray<ValidationRule>,
8485
) => $ReadOnlyArray<GraphQLError>,
8586

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

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

144145
/**

0 commit comments

Comments
 (0)