convex-helpers
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -256,2 +256,3 @@ /** | ||
type CustomBuilder<FuncType extends "query" | "mutation" | "action", ModArgsValidator extends PropertyValidators, ModCtx extends Record<string, any>, ModMadeArgs extends Record<string, any>, InputCtx, Visibility extends FunctionVisibility> = ModArgsValidator extends EmptyObject ? ValidatedBuilder<FuncType, ModArgsValidator, ModCtx, ModMadeArgs, InputCtx, Visibility> & UnvalidatedBuilder<FuncType, ModCtx, ModMadeArgs, InputCtx, Visibility> : ValidatedBuilder<FuncType, ModArgsValidator, ModCtx, ModMadeArgs, InputCtx, Visibility>; | ||
export type CustomCtx<Builder> = Builder extends ValidatedBuilder<any, any, infer ModCtx, any, infer InputCtx, any> ? Overwrite<InputCtx, ModCtx> : never; | ||
type Overwrite<T, U> = Omit<T, keyof U> & U; | ||
@@ -258,0 +259,0 @@ type EmptyObject = Record<string, never>; |
{ | ||
"name": "convex-helpers", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "A collection of useful code to complement the official convex package.", | ||
"exports": { | ||
".": "./dist/index.js", | ||
"./react": "./dist/react/index.js", | ||
"./react*": "./dist/react*", | ||
"./react/sessions": "./dist/react/sessions.js", | ||
"./server": "./dist/server/index.js", | ||
"./server*": "./dist/server*", | ||
"./server/customFunctions": "./dist/server/customFunctions.js", | ||
"./server/middlewareUtils": "./dist/server/middlewareUtils.js", | ||
"./server/rowLevelSecurity": "./dist/server/rowLevelSecurity.js", | ||
"./server/relationships": "./dist/server/relationships.js", | ||
"./server/sessions": "./dist/server/sessions.js", | ||
"./server/customFunctions": "./dist/server/customFunctions.js", | ||
"./server/zod": "./dist/server/zod.js" | ||
@@ -46,14 +41,5 @@ }, | ||
"peerDependencies": { | ||
"convex": "^1.7.1", | ||
"react": "^17.0.2 || ^18.0.0", | ||
"convex": "^1.6.3", | ||
"zod": "^3.22.4" | ||
}, | ||
"peerDependenciesMeta": { | ||
"react": { | ||
"optional": true | ||
}, | ||
"zod": { | ||
"optional": true | ||
} | ||
}, | ||
"devDependencies": { | ||
@@ -60,0 +46,0 @@ "chokidar-cli": "^3.0.0", |
@@ -541,2 +541,13 @@ /** | ||
export type CustomCtx<Builder> = Builder extends ValidatedBuilder< | ||
any, | ||
any, | ||
infer ModCtx, | ||
any, | ||
infer InputCtx, | ||
any | ||
> | ||
? Overwrite<InputCtx, ModCtx> | ||
: never; | ||
type Overwrite<T, U> = Omit<T, keyof U> & U; | ||
@@ -543,0 +554,0 @@ // Copied from convex/server since they weren't exported |
Sorry, the diff of this file is not supported yet
2
196568
23
4421