Typings for Apollo are not correct
javi11 opened this issue · 2 comments
javi11 commented
Hey, we saw that typings as a Apollo plugin are not valid we see this error:
(alias) createApolloQueryValidationPlugin(): (schema: GraphQLSchema) => function import createApolloQueryValidationPlugin Type '(schema: GraphQLSchema) => function' is not assignable to type 'PluginDefinition'. Type '(schema: GraphQLSchema) => function' is not assignable to type '() => ApolloServerPlugin<BaseContext>'.ts(2322)
graphql-constraint-directive/index.d.ts
Line 10 in b139624
shouldn't be like this?
export function createApolloQueryValidationPlugin({ schema: GraphQLSchema }) : PluginDefinition;
I can create a PR if you want
confuser commented
PRs welcome