Skip to content

Commit 788bc67

Browse files
authored
Fixed type error for resolvers with typed arguments (#2899)
* Fixed type error for resolvers with typed arguments * added changeset
1 parent c1dcc58 commit 788bc67

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/fluffy-melons-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-tools/resolvers-composition': patch
3+
---
4+
5+
Fixed type error for resolvers with typed arguments

packages/resolvers-composition/src/resolvers-composition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { get, set, flatten } from 'lodash';
33
import { isScalarType, GraphQLFieldResolver } from 'graphql';
44
import { asArray } from '@graphql-tools/utils';
55

6-
export type ResolversComposition<Resolver extends GraphQLFieldResolver<any, any> = GraphQLFieldResolver<any, any>> = (
6+
export type ResolversComposition<Resolver extends GraphQLFieldResolver<any, any, any> = GraphQLFieldResolver<any, any>> = (
77
next: Resolver
88
) => Resolver;
99

0 commit comments

Comments
 (0)