diff --git a/dev-test/test-schema/resolvers-federation.ts b/dev-test/test-schema/resolvers-federation.ts index d2c05ac9d13..ba1feb00f47 100644 --- a/dev-test/test-schema/resolvers-federation.ts +++ b/dev-test/test-schema/resolvers-federation.ts @@ -128,6 +128,11 @@ export type DirectiveResolverFn TResult | Promise; +/** Mapping of federation types */ +export type FederationTypes = { + User: User; +}; + /** Mapping between all available schema types and the resolvers types */ export type ResolversTypes = { Address: ResolverTypeWrapper
; @@ -190,13 +195,14 @@ export type QueryResolvers< export type UserResolvers< ContextType = any, - ParentType extends ResolversParentTypes['User'] = ResolversParentTypes['User'] + ParentType extends ResolversParentTypes['User'] = ResolversParentTypes['User'], + FederationType extends FederationTypes['User'] = FederationTypes['User'] > = { __resolveReference?: ReferenceResolver< Maybe, { __typename: 'User' } & ( - | GraphQLRecursivePick - | GraphQLRecursivePick + | GraphQLRecursivePick + | GraphQLRecursivePick ), ContextType >; @@ -204,10 +210,10 @@ export type UserResolvers< email?: Resolver< ResolversTypes['String'], { __typename: 'User' } & ( - | GraphQLRecursivePick - | GraphQLRecursivePick + | GraphQLRecursivePick + | GraphQLRecursivePick ) & - GraphQLRecursivePick, + GraphQLRecursivePick, ContextType >;