@@ -772,7 +772,7 @@ function defineInterfaces(
772
772
| GraphQLInterfaceTypeConfig < mixed, mixed> ,
773
773
> ,
774
774
) : Array < GraphQLInterfaceType > {
775
- const interfaces = resolveThunk ( config . interfaces ) ?? [ ] ;
775
+ const interfaces = resolveThunk ( config . interfaces ?? [ ] ) ;
776
776
devAssert (
777
777
Array . isArray ( interfaces ) ,
778
778
`${ config . name } interfaces must be an Array or a function which returns an Array.` ,
@@ -875,7 +875,7 @@ export function argsToArgsConfig(
875
875
export type GraphQLObjectTypeConfig< TSource , TContext > = { |
876
876
name : string ,
877
877
description ?: ?string ,
878
- interfaces ?: Thunk < ? Array < GraphQLInterfaceType >> ,
878
+ interfaces ?: Thunk < Array < GraphQLInterfaceType >> ,
879
879
fields : Thunk < GraphQLFieldConfigMap < TSource , TContext >> ,
880
880
isTypeOf ?: ?GraphQLIsTypeOfFn < TSource , TContext > ,
881
881
extensions ?: ?ReadOnlyObjMapLike < mixed > ,
@@ -1086,7 +1086,7 @@ export class GraphQLInterfaceType {
1086
1086
export type GraphQLInterfaceTypeConfig < TSource , TContext > = { |
1087
1087
name : string ,
1088
1088
description ?: ?string ,
1089
- interfaces ?: Thunk < ? Array < GraphQLInterfaceType >> ,
1089
+ interfaces ?: Thunk < Array < GraphQLInterfaceType >> ,
1090
1090
fields : Thunk < GraphQLFieldConfigMap < TSource , TContext> > ,
1091
1091
/**
1092
1092
* Optionally provide a custom type resolver function. If one is not provided,
0 commit comments