nitro-graphql 0.0.17 → 0.0.18

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.
@@ -1,5 +1,6 @@
1
1
  //#region src/graphql/server.d.ts
2
2
  interface StandardSchemaV1 extends Record<string, any> {}
3
3
  interface ResolversTypes extends Record<string, any> {}
4
+ interface Resolvers extends Record<string, any> {}
4
5
  //#endregion
5
- export { ResolversTypes, StandardSchemaV1 };
6
+ export { Resolvers, ResolversTypes, StandardSchemaV1 };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,9 @@
1
1
  import { StandardSchemaV1 } from "./types/standard-schema.js";
2
2
  import { CodegenClientConfig, CodegenServerConfig, GenImport, NitroGraphQLOptions } from "./types/index.js";
3
- import * as nitropack0 from "nitropack";
3
+ import * as nitropack4 from "nitropack";
4
4
 
5
5
  //#region src/index.d.ts
6
- interface Resolvers extends Record<string, any> {}
7
- interface CustomSchema extends Record<string, any> {}
8
6
  type GraphQLFramework = 'graphql-yoga';
9
- declare const _default: nitropack0.NitroModule;
7
+ declare const _default: nitropack4.NitroModule;
10
8
  //#endregion
11
- export { CodegenClientConfig, CodegenServerConfig, CustomSchema, GenImport, GraphQLFramework, NitroGraphQLOptions, Resolvers, StandardSchemaV1, _default as default };
9
+ export { CodegenClientConfig, CodegenServerConfig, GenImport, GraphQLFramework, NitroGraphQLOptions, StandardSchemaV1, _default as default };
package/dist/index.js CHANGED
@@ -135,13 +135,9 @@ var src_default = defineNitroModule({
135
135
  });
136
136
  const graphqlDtsContent = `// Auto-generated by nitro-graphql
137
137
 
138
- import type { Resolvers as Test, SchemaType } from './nitro-graphql-server.d.ts'
138
+ import type { SchemaType } from './nitro-graphql-server.d.ts'
139
139
 
140
140
  declare module 'nitro-graphql' {
141
- interface Resolvers extends Test {}
142
-
143
- interface CustomSchema extends SchemaType {}
144
-
145
141
  type GraphQLFramework = '${nitro.options.graphql?.framework || "graphql-yoga"}'
146
142
  }
147
143
  `;
@@ -1,6 +1,6 @@
1
- import * as h31 from "h3";
1
+ import * as h32 from "h3";
2
2
 
3
3
  //#region src/routes/graphql-yoga.d.ts
4
- declare const _default: h31.EventHandler<h31.EventHandlerRequest, Promise<Response>>;
4
+ declare const _default: h32.EventHandler<h32.EventHandlerRequest, Promise<Response>>;
5
5
  //#endregion
6
6
  export { _default as default };
@@ -1,7 +1,7 @@
1
- import * as h33 from "h3";
1
+ import * as h30 from "h3";
2
2
 
3
3
  //#region src/routes/health.d.ts
4
- declare const _default: h33.EventHandler<h33.EventHandlerRequest, Promise<{
4
+ declare const _default: h30.EventHandler<h30.EventHandlerRequest, Promise<{
5
5
  status: string;
6
6
  message: string;
7
7
  timestamp: string;
@@ -1,7 +1,7 @@
1
1
  import { ApolloServerOptions, BaseContext } from "@apollo/server";
2
2
  import { YogaServerOptions } from "graphql-yoga";
3
- import { ResolversTypes, StandardSchemaV1 } from "#graphql/server";
4
- import { GraphQLFramework, Resolvers } from "nitro-graphql";
3
+ import { Resolvers, ResolversTypes, StandardSchemaV1 } from "#graphql/server";
4
+ import { GraphQLFramework } from "nitro-graphql";
5
5
 
6
6
  //#region src/utils/define.d.ts
7
7
  type Flatten<T> = T extends infer U ? { [K in keyof U]: U[K] } : never;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nitro-graphql",
3
3
  "type": "module",
4
- "version": "0.0.17",
4
+ "version": "0.0.18",
5
5
  "description": "GraphQL integration for Nitro",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,