File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import type { Resolvers , ResolversTypes } from '#graphql/server'
2
- import type { ApolloServerOptions , BaseContext } from '@apollo/server'
2
+ import type { ApolloServerOptions } from '@apollo/server'
3
3
import type { YogaServerOptions } from 'graphql-yoga'
4
+ import type { H3Event } from 'h3'
4
5
5
6
import type { GraphQLFramework , StandardSchemaV1 } from 'nitro-graphql'
6
7
@@ -60,9 +61,9 @@ export function defineType(
60
61
}
61
62
62
63
export type DefineServerConfig = GraphQLFramework extends 'graphql-yoga'
63
- ? Partial < YogaServerOptions < any , any > >
64
+ ? Partial < YogaServerOptions < H3Event , H3Event > >
64
65
: GraphQLFramework extends 'apollo-server'
65
- ? Partial < ApolloServerOptions < BaseContext > >
66
+ ? Partial < ApolloServerOptions < H3Event > >
66
67
: Record < string , any >
67
68
68
69
export function defineGraphQLConfig (
You can’t perform that action at this time.
0 commit comments