@@ -293,8 +293,8 @@ export function buildExecutionContext(
293293 contextValue: mixed,
294294 rawVariableValues: ?{ + [ variable : string ] : mixed , ... } ,
295295 operationName: ?string,
296- fieldResolver: ?GraphQLFieldResolver< any , any > ,
297- typeResolver?: ?GraphQLTypeResolver< any , any > ,
296+ fieldResolver: ?GraphQLFieldResolver< mixed , mixed > ,
297+ typeResolver?: ?GraphQLTypeResolver< mixed , mixed > ,
298298): $ReadOnlyArray< GraphQLError > | ExecutionContext {
299299 const errors : Array < GraphQLError > = [ ] ;
300300 let operation : OperationDefinitionNode | void ;
@@ -682,7 +682,7 @@ function resolveField(
682682
683683export function buildResolveInfo(
684684 exeContext: ExecutionContext,
685- fieldDef: GraphQLField< * , * > ,
685+ fieldDef: GraphQLField< mixed , mixed > ,
686686 fieldNodes: $ReadOnlyArray< FieldNode > ,
687687 parentType: GraphQLObjectType,
688688 path: ResponsePath,
@@ -705,12 +705,12 @@ export function buildResolveInfo(
705705
706706// Isolates the "ReturnOrAbrupt" behavior to not de-opt the `resolveField`
707707// function. Returns the result of resolveFn or the abrupt-return Error object.
708- export function resolveFieldValueOrError< TSource > (
708+ export function resolveFieldValueOrError(
709709 exeContext: ExecutionContext,
710- fieldDef: GraphQLField< TSource , * > ,
710+ fieldDef: GraphQLField< mixed , mixed > ,
711711 fieldNodes: $ReadOnlyArray< FieldNode > ,
712- resolveFn: GraphQLFieldResolver< TSource , * > ,
713- source: TSource ,
712+ resolveFn: GraphQLFieldResolver< mixed , mixed > ,
713+ source: mixed ,
714714 info: GraphQLResolveInfo,
715715): Error | mixed {
716716 try {
@@ -1165,7 +1165,7 @@ function _collectSubfields(
11651165 * Otherwise, test each possible type for the abstract type by calling
11661166 * isTypeOf for the object being coerced, returning the first type that matches.
11671167 */
1168- export const defaultTypeResolver : GraphQLTypeResolver < any , * > = function (
1168+ export const defaultTypeResolver : GraphQLTypeResolver < mixed , mixed > = function (
11691169 value ,
11701170 contextValue ,
11711171 info ,
@@ -1211,12 +1211,10 @@ export const defaultTypeResolver: GraphQLTypeResolver<any, *> = function(
12111211 * and returns it as the result, or if it's a function, returns the result
12121212 * of calling that function while passing along args and context value.
12131213 */
1214- export const defaultFieldResolver : GraphQLFieldResolver < any , * > = function (
1215- source ,
1216- args ,
1217- contextValue ,
1218- info ,
1219- ) {
1214+ export const defaultFieldResolver : GraphQLFieldResolver <
1215+ mixed ,
1216+ mixed ,
1217+ > = function ( source : any , args , contextValue , info ) {
12201218 // ensure source is a value for which property access is acceptable.
12211219 if ( isObjectLike ( source ) || typeof source === 'function' ) {
12221220 const property = source [ info . fieldName ] ;
@@ -1240,7 +1238,7 @@ export function getFieldDef(
12401238 schema : GraphQLSchema ,
12411239 parentType : GraphQLObjectType ,
12421240 fieldName : string ,
1243- ) : ?GraphQLField < * , * > {
1241+ ) : ?GraphQLField < mixed , mixed > {
12441242 if (
12451243 fieldName === SchemaMetaFieldDef . name &&
12461244 schema . getQueryType ( ) === parentType
0 commit comments