-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
trying to run the Value validation example.
I'm being returned this issue by typescript :
error TS2322: Type 'typeof ConcreteValidateDirectiveVisitor' is not assignable to type 'typeof SchemaDirectiveVisitor'.
Types of property 'visitSchemaDirectives' are incompatible.
Type '(schema: GraphQLSchema, directiveVisitors: { [directiveName: string]: typeof SchemaDirectiveVisitor; }, context?: { [key: string]: any; } | undefined) => { [directiveName: string]: SchemaDirectiveVisitor[]; }' is not assignable to type '(schema: GraphQLSchema, directiveVisitors: Record<string, typeof SchemaDirectiveVisitor>, context?: Record<string, any> | undefined, pathToDirectivesInExtensions?: string[] | undefined) => Record<...>'.
Types of parameters 'directiveVisitors' and 'directiveVisitors' are incompatible.
Type 'Record<string, typeof SchemaDirectiveVisitor>' is not assignable to type '{ [directiveName: string]: typeof SchemaDirectiveVisitor; }'.
Index signatures are incompatible.
Type 'typeof import("node_modules/@graphql-tools/utils/SchemaDirectiveVisitor").SchemaDirectiveVisitor' is not assignable to type 'typeof import("node_modules/apollo-server-core/node_modules/graphql-tools/dist/schemaVisitor").SchemaDirectiveVisitor'.
The types returned by 'getDirectiveDeclaration(...)' are incompatible between these types.
Type 'GraphQLDirective | null | undefined' is not assignable to type 'GraphQLDirective'.
Type 'undefined' is not assignable to type 'GraphQLDirective'.
adding // @ts-ignore before schemaDirectives: { range }, is silencing the issue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels