nitro-graphql 1.5.6 → 1.5.8
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,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h35 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/apollo-server.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h35.EventHandler<h35.EventHandlerRequest, Promise<any>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
package/dist/routes/debug.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h30 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/debug.d.ts
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ import * as h35 from "h3";
|
|
|
10
10
|
* - /_nitro/graphql/debug - HTML dashboard
|
|
11
11
|
* - /_nitro/graphql/debug?format=json - JSON API
|
|
12
12
|
*/
|
|
13
|
-
declare const _default:
|
|
13
|
+
declare const _default: h30.EventHandler<h30.EventHandlerRequest, Promise<string | {
|
|
14
14
|
timestamp: string;
|
|
15
15
|
environment: {
|
|
16
16
|
dev: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h33 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/graphql-yoga.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h33.EventHandler<h33.EventHandlerRequest, Promise<Response>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
|
@@ -103,12 +103,14 @@ type ResolverReturnType<T> = T extends BuiltIns
|
|
|
103
103
|
? T
|
|
104
104
|
: T extends (...args: any[]) => unknown
|
|
105
105
|
? T | undefined
|
|
106
|
+
: T extends { __typename?: any }
|
|
107
|
+
? T
|
|
106
108
|
: T extends object
|
|
107
109
|
? T extends Array<infer ItemType> // Test for arrays/tuples, per https://github.com/microsoft/TypeScript/issues/35156
|
|
108
110
|
? ItemType[] extends T // Test for arrays (non-tuples) specifically
|
|
109
111
|
? Array<ResolverReturnType<ItemType>>
|
|
110
|
-
:
|
|
111
|
-
:
|
|
112
|
+
: { [K in keyof T]: ResolverReturnType<T[K]> }
|
|
113
|
+
: { [K in keyof T]: ResolverReturnType<T[K]> }
|
|
112
114
|
: unknown;
|
|
113
115
|
|
|
114
116
|
type ResolverReturnTypeObject<T extends object> =
|