nitro-graphql 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ecosystem/nuxt.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _nuxt_schema3 from "@nuxt/schema";
|
|
2
2
|
|
|
3
3
|
//#region src/ecosystem/nuxt.d.ts
|
|
4
4
|
interface ModuleOptions {}
|
|
5
|
-
declare const _default:
|
|
5
|
+
declare const _default: _nuxt_schema3.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { ModuleOptions, _default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h31 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/graphql-yoga.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h31.EventHandler<h31.EventHandlerRequest, Promise<Response>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
package/dist/routes/health.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h34 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/health.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h34.EventHandler<h34.EventHandlerRequest, Promise<{
|
|
5
5
|
status: string;
|
|
6
6
|
message: string;
|
|
7
7
|
timestamp: string;
|
package/dist/utils/define.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ApolloServerOptions
|
|
1
|
+
import { ApolloServerOptions } from "@apollo/server";
|
|
2
|
+
import { H3Event } from "h3";
|
|
2
3
|
import { YogaServerOptions } from "graphql-yoga";
|
|
3
4
|
import { Resolvers, ResolversTypes } from "#graphql/server";
|
|
4
5
|
import { GraphQLFramework, StandardSchemaV1 } from "nitro-graphql";
|
|
@@ -14,7 +15,7 @@ declare function defineQuery(resolvers?: Resolvers['Query']): Resolvers;
|
|
|
14
15
|
declare function defineMutation(resolvers?: Resolvers['Mutation']): Resolvers;
|
|
15
16
|
declare function defineSubscription(resolvers?: Resolvers['Subscription']): Resolvers;
|
|
16
17
|
declare function defineType(resolvers: Resolvers): Resolvers;
|
|
17
|
-
type DefineServerConfig = GraphQLFramework extends 'graphql-yoga' ? Partial<YogaServerOptions<
|
|
18
|
+
type DefineServerConfig = GraphQLFramework extends 'graphql-yoga' ? Partial<YogaServerOptions<H3Event, H3Event>> : GraphQLFramework extends 'apollo-server' ? Partial<ApolloServerOptions<H3Event>> : Record<string, any>;
|
|
18
19
|
declare function defineGraphQLConfig(config: Partial<DefineServerConfig>): Partial<DefineServerConfig>;
|
|
19
20
|
//#endregion
|
|
20
21
|
export { DefineServerConfig, ResolverQuery, defineGraphQLConfig, defineMutation, defineQuery, defineResolver, defineSchema, defineSubscription, defineType };
|