naystack 1.4.29 → 1.4.30

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.
@@ -42,5 +42,6 @@ declare function QueryLibrary<T extends Record<string, QueryDefinition<any, any,
42
42
  declare function FieldLibrary<X extends object, T extends Record<string, FieldResolverDefinition<any, any, X, any, any, any, any>> = Record<string, FieldResolverDefinition<any, any, X, any, any, any, any>>>(type: ClassType, queries: T): {
43
43
  new (): {};
44
44
  };
45
+ type ResponseType<T extends QueryDefinition<any, any, any, any, any, any>> = Awaited<ReturnType<T["call"]>>;
45
46
 
46
- export { FieldLibrary, QueryLibrary, field, query };
47
+ export { FieldLibrary, QueryLibrary, type ResponseType, field, query };
@@ -42,5 +42,6 @@ declare function QueryLibrary<T extends Record<string, QueryDefinition<any, any,
42
42
  declare function FieldLibrary<X extends object, T extends Record<string, FieldResolverDefinition<any, any, X, any, any, any, any>> = Record<string, FieldResolverDefinition<any, any, X, any, any, any, any>>>(type: ClassType, queries: T): {
43
43
  new (): {};
44
44
  };
45
+ type ResponseType<T extends QueryDefinition<any, any, any, any, any, any>> = Awaited<ReturnType<T["call"]>>;
45
46
 
46
- export { FieldLibrary, QueryLibrary, field, query };
47
+ export { FieldLibrary, QueryLibrary, type ResponseType, field, query };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naystack",
3
- "version": "1.4.29",
3
+ "version": "1.4.30",
4
4
  "description": "A stack built with Next + GraphQL + S3 + Auth",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",