joist-graphql-resolver-utils 2.4.0 → 2.5.0-next.10
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/build/context.d.cts +2 -5
- package/build/context.d.cts.map +1 -1
- package/build/context.d.mts +2 -5
- package/build/context.d.mts.map +1 -1
- package/build/cursorPagination.cjs +1 -2
- package/build/cursorPagination.cjs.map +1 -1
- package/build/cursorPagination.d.cts +4 -6
- package/build/cursorPagination.d.cts.map +1 -1
- package/build/cursorPagination.d.mts +4 -6
- package/build/cursorPagination.d.mts.map +1 -1
- package/build/cursorPagination.js +1 -2
- package/build/cursorPagination.js.map +1 -1
- package/build/entityResolver.cjs +1 -2
- package/build/entityResolver.d.cts +3 -5
- package/build/entityResolver.d.cts.map +1 -1
- package/build/entityResolver.d.mts +3 -5
- package/build/entityResolver.d.mts.map +1 -1
- package/build/entityResolver.js +1 -2
- package/build/hint.cjs +1 -2
- package/build/hint.d.cts +3 -6
- package/build/hint.d.cts.map +1 -1
- package/build/hint.d.mts +3 -6
- package/build/hint.d.mts.map +1 -1
- package/build/hint.js +1 -2
- package/build/index.cjs +1 -1
- package/build/index.js +1 -1
- package/build/limitPagination.cjs +1 -2
- package/build/limitPagination.cjs.map +1 -1
- package/build/limitPagination.d.cts +4 -6
- package/build/limitPagination.d.cts.map +1 -1
- package/build/limitPagination.d.mts +4 -6
- package/build/limitPagination.d.mts.map +1 -1
- package/build/limitPagination.js +1 -2
- package/build/limitPagination.js.map +1 -1
- package/build/makeRunInputMutation.cjs +1 -2
- package/build/makeRunInputMutation.d.cts +3 -5
- package/build/makeRunInputMutation.d.cts.map +1 -1
- package/build/makeRunInputMutation.d.mts +3 -5
- package/build/makeRunInputMutation.d.mts.map +1 -1
- package/build/makeRunInputMutation.js +1 -2
- package/build/makeRunObjectField.cjs +1 -2
- package/build/makeRunObjectField.d.cts +3 -5
- package/build/makeRunObjectField.d.cts.map +1 -1
- package/build/makeRunObjectField.d.mts +3 -5
- package/build/makeRunObjectField.d.mts.map +1 -1
- package/build/makeRunObjectField.js +1 -2
- package/build/makeRunObjectFields.cjs +1 -2
- package/build/makeRunObjectFields.d.cts +3 -5
- package/build/makeRunObjectFields.d.cts.map +1 -1
- package/build/makeRunObjectFields.d.mts +3 -5
- package/build/makeRunObjectFields.d.mts.map +1 -1
- package/build/makeRunObjectFields.js +1 -2
- package/build/makeRunQuery.cjs +1 -2
- package/build/makeRunQuery.d.cts +3 -5
- package/build/makeRunQuery.d.cts.map +1 -1
- package/build/makeRunQuery.d.mts +3 -5
- package/build/makeRunQuery.d.mts.map +1 -1
- package/build/makeRunQuery.js +1 -2
- package/build/paginationUtils.cjs +1 -2
- package/build/paginationUtils.d.cts +6 -9
- package/build/paginationUtils.d.cts.map +1 -1
- package/build/paginationUtils.d.mts +6 -9
- package/build/paginationUtils.d.mts.map +1 -1
- package/build/paginationUtils.js +1 -2
- package/build/saveEntity.cjs +1 -2
- package/build/saveEntity.d.cts +2 -5
- package/build/saveEntity.d.cts.map +1 -1
- package/build/saveEntity.d.mts +2 -5
- package/build/saveEntity.d.mts.map +1 -1
- package/build/saveEntity.js +1 -2
- package/build/tests.d.cts +1 -1
- package/build/tests.d.mts +1 -1
- package/build/typeUtils.d.cts +4 -7
- package/build/typeUtils.d.cts.map +1 -1
- package/build/typeUtils.d.mts +4 -7
- package/build/typeUtils.d.mts.map +1 -1
- package/package.json +5 -5
package/build/typeUtils.d.mts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { Resolver } from "./context.mjs";
|
|
2
|
-
|
|
3
|
-
type RunFn<C> = <T>(ctx: C, fn: (ctx: C) => Promise<T>) => Promise<T>;
|
|
2
|
+
export type RunFn<C> = <T>(ctx: C, fn: (ctx: C) => Promise<T>) => Promise<T>;
|
|
4
3
|
/** Infers the root type of the given resolver, by assuming it's always the first arg. */
|
|
5
|
-
type ResolverRoot<T> = T extends { [key in keyof T]: infer F; } ? F extends Resolver<infer R, any, any> ? R : never : never;
|
|
6
|
-
type ResolverArgs<T, K extends keyof T> = T[K] extends Resolver<any, infer U, any> ? U : never;
|
|
4
|
+
export type ResolverRoot<T> = T extends { [key in keyof T]: infer F; } ? F extends Resolver<infer R, any, any> ? R : never : never;
|
|
5
|
+
export type ResolverArgs<T, K extends keyof T> = T[K] extends Resolver<any, infer U, any> ? U : never;
|
|
7
6
|
/** Infers the return type of key `K` in the resolver object `T`. */
|
|
8
|
-
type ResolverResult<T, K extends keyof T> = T[K] extends Resolver<any, any, infer U> ? U : never;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { ResolverArgs, ResolverResult, ResolverRoot, RunFn };
|
|
7
|
+
export type ResolverResult<T, K extends keyof T> = T[K] extends Resolver<any, any, infer U> ? U : never;
|
|
11
8
|
//# sourceMappingURL=typeUtils.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeUtils.d.mts","names":[],"sources":["../src/typeUtils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"typeUtils.d.mts","names":[],"sources":["../src/typeUtils.ts"],"mappings":";YAEY,MAAM,MAAM,GAAG,KAAK,GAAG,KAAK,KAAK,MAAM,QAAQ,OAAO,QAAQ;;YAG9D,aAAa,KAAK,aAAa,aAAa,UAAU,OAC9D,UAAU,eAAe,eACvB;YAIM,aAAa,GAAG,gBAAgB,KAAK,EAAE,WAAW,oBAAoB,UAAU;;YAGhF,eAAe,GAAG,gBAAgB,KAAK,EAAE,WAAW,yBAAyB,KAAK"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joist-graphql-resolver-utils",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0-next.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -84,17 +84,17 @@
|
|
|
84
84
|
"build"
|
|
85
85
|
],
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"joist-core": "2.
|
|
88
|
-
"joist-test-utils": "2.
|
|
87
|
+
"joist-core": "2.5.0-next.10",
|
|
88
|
+
"joist-test-utils": "2.5.0-next.10"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"graphql": "^17.0.2"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@swc/core": "
|
|
94
|
+
"@swc/core": "1.16.21",
|
|
95
95
|
"@swc/jest": "^0.2.39",
|
|
96
96
|
"@types/jest": "^30.0.0",
|
|
97
|
-
"@types/node": "^26.
|
|
97
|
+
"@types/node": "^26.6.6",
|
|
98
98
|
"jest": "30.4.2",
|
|
99
99
|
"tsconfig-paths": "^4.2.0",
|
|
100
100
|
"typescript": "7.0.2"
|