/// /// declare module 'graphql-add-middleware' { import { GraphQLSchema } from 'graphql'; type middlewareFn = (root: any, args: any, context: any, info: any, next: () => Promise) => Promise; export function addMiddleware ( schema: GraphQLSchema, fn: middlewareFn, ): void; export function addMiddleware ( schema: GraphQLSchema, path: string, fn: middlewareFn, ): void; }