diff --git a/src/utils/define.ts b/src/utils/define.ts index 2e501c6..8362006 100644 --- a/src/utils/define.ts +++ b/src/utils/define.ts @@ -1,6 +1,7 @@ import type { Resolvers, ResolversTypes } from '#graphql/server' -import type { ApolloServerOptions, BaseContext } from '@apollo/server' +import type { ApolloServerOptions } from '@apollo/server' import type { YogaServerOptions } from 'graphql-yoga' +import type { H3Event } from 'h3' import type { GraphQLFramework, StandardSchemaV1 } from 'nitro-graphql' @@ -60,9 +61,9 @@ export function defineType( } export type DefineServerConfig = GraphQLFramework extends 'graphql-yoga' - ? Partial> + ? Partial> : GraphQLFramework extends 'apollo-server' - ? Partial> + ? Partial> : Record export function defineGraphQLConfig(