nitro-graphql 1.5.9 → 1.5.11
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 h31 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: h31.EventHandler<h31.EventHandlerRequest, Promise<string | {
|
|
14
14
|
timestamp: string;
|
|
15
15
|
environment: {
|
|
16
16
|
dev: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h30 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/graphql-yoga.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h30.EventHandler<h30.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 h33 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/health.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h33.EventHandler<h33.EventHandlerRequest, Promise<{
|
|
5
5
|
status: string;
|
|
6
6
|
message: string;
|
|
7
7
|
timestamp: string;
|
|
@@ -98,30 +98,23 @@ type Primitive =
|
|
|
98
98
|
|
|
99
99
|
type BuiltIns = Primitive | void | Date | RegExp;
|
|
100
100
|
|
|
101
|
-
type IsLiteral<T> = T extends string
|
|
102
|
-
? string extends T
|
|
103
|
-
? false
|
|
104
|
-
: true
|
|
105
|
-
: false;
|
|
106
101
|
|
|
107
102
|
type ResolverReturnType<T> = T extends BuiltIns
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
103
|
+
? T
|
|
104
|
+
: T extends (...args: any[]) => unknown
|
|
105
|
+
? T | undefined
|
|
106
|
+
: T extends object
|
|
107
|
+
? T extends Array<infer ItemType> // Test for arrays/tuples, per https://github.com/microsoft/TypeScript/issues/35156
|
|
108
|
+
? ItemType[] extends T // Test for arrays (non-tuples) specifically
|
|
109
|
+
? Array<ResolverReturnType<ItemType>>
|
|
110
|
+
: ResolverReturnTypeObject<T> // Tuples behave properly
|
|
111
|
+
: ResolverReturnTypeObject<T>
|
|
112
|
+
: unknown;
|
|
118
113
|
|
|
119
114
|
type ResolverReturnTypeObject<T extends object> =
|
|
120
115
|
T extends { __typename?: infer TTypename }
|
|
121
|
-
?
|
|
122
|
-
? TTypename
|
|
123
|
-
? InferOutputFromSchema<TTypename>
|
|
124
|
-
: { [K in keyof T]: ResolverReturnType<T[K]> }
|
|
116
|
+
? TTypename extends SchemaKeys
|
|
117
|
+
? InferOutputFromSchema<TTypename>
|
|
125
118
|
: { [K in keyof T]: ResolverReturnType<T[K]> }
|
|
126
119
|
: { [K in keyof T]: ResolverReturnType<T[K]> };
|
|
127
120
|
`,
|