File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -468,9 +468,9 @@ type GraphQLInterfacesThunk = () => Array<GraphQLInterfaceType>;
468
468
type GraphQLFieldConfigMapThunk = ( ) => GraphQLFieldConfigMap ;
469
469
470
470
export type GraphQLFieldResolveFn = (
471
- source ? : mixed ,
472
- args ? : { [ argName : string ] : mixed } ,
473
- info ? : GraphQLResolveInfo
471
+ source : mixed ,
472
+ args : { [ argName : string ] : mixed } ,
473
+ info : GraphQLResolveInfo
474
474
) => mixed
475
475
476
476
export type GraphQLResolveInfo = {
Original file line number Diff line number Diff line change 1
- /* @flow weak */
1
+ /* @flow */
2
2
/**
3
3
* Copyright (c) 2015, Facebook, Inc.
4
4
* All rights reserved.
@@ -242,7 +242,7 @@ const __EnumValue = new GraphQLObjectType({
242
242
'One possible value for a given Enum. Enum values are unique values, not ' +
243
243
'a placeholder for a string or numeric value. However an Enum value is ' +
244
244
'returned in a JSON response as a string.' ,
245
- fields : {
245
+ fields : ( ) => ( {
246
246
name : { type : new GraphQLNonNull ( GraphQLString ) } ,
247
247
description : { type : GraphQLString } ,
248
248
isDeprecated : {
@@ -252,7 +252,7 @@ const __EnumValue = new GraphQLObjectType({
252
252
deprecationReason : {
253
253
type : GraphQLString ,
254
254
}
255
- }
255
+ } )
256
256
} ) ;
257
257
258
258
export const TypeKind = {
@@ -332,7 +332,8 @@ export const TypeMetaFieldDef: GraphQLFieldDefinition = {
332
332
args : [
333
333
{ name : 'name' , type : new GraphQLNonNull ( GraphQLString ) }
334
334
] ,
335
- resolve : ( source , { name } , { schema } ) => schema . getType ( name )
335
+ resolve : ( source , { name } : { name : string } , { schema } ) =>
336
+ schema . getType ( name )
336
337
} ;
337
338
338
339
export const TypeNameMetaFieldDef : GraphQLFieldDefinition = {
You can’t perform that action at this time.
0 commit comments