import type { BaseContext, ContextFunction } from "@apollo/server"; import type { FastifyReply, FastifyRequest, HTTPMethods, RawServerBase, RawServerDefault, RouteGenericInterface } from "fastify"; type ValueOrArray = T | T[]; export type ApolloFastifyContextFunctionArgument = [request: FastifyRequest, reply: FastifyReply]; export type ApolloFastifyContextFunction = ContextFunction, Context>; export interface ApolloFastifyHandlerOptions { context?: ApolloFastifyContextFunction; } export interface ApolloFastifyPluginOptions extends ApolloFastifyHandlerOptions { path?: string; method?: ValueOrArray>; } export {};