Skip to content

Commit

Permalink
Make wrapSchema generic. Fix #3064 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustinLF authored Jun 11, 2021
1 parent bef2164 commit 321e8ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/wrap/src/wrapSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import { MapperKind, mapSchema } from '@graphql-tools/utils';
import { SubschemaConfig, defaultMergedResolver, applySchemaTransforms } from '@graphql-tools/delegate';
import { generateProxyingResolvers } from './generateProxyingResolvers';

export function wrapSchema(subschemaConfig: SubschemaConfig<any, any, any, any>): GraphQLSchema {
export function wrapSchema<TConfig = Record<string, any>>(
subschemaConfig: SubschemaConfig<any, any, any, TConfig>
): GraphQLSchema {
const targetSchema = subschemaConfig.schema;

const proxyingResolvers = generateProxyingResolvers(subschemaConfig);
Expand Down

0 comments on commit 321e8ca

Please sign in to comment.