@@ -848,26 +848,29 @@ type ConvexValidatorFromZod<Z extends z.ZodTypeAny> =
848848 * (see the limits of Convex data types on https://docs.convex.dev/database/types).
849849 *
850850 * ```
851- * ┌───────────────────────────────────────────────┬───────────────────────────────────────────────┐
852- * │ **zodToConvex** │ zodOutputToConvex │
853- * ├───────────────────────────────────────────────┼───────────────────────────────────────────────┤
854- * │ For when the Zod validator runs _after_ │ For when the Zod validator runs _before_ │
855- * │ the Convex validator │ the Convex validator │
856- * ├───────────────────────────────────────────────┼───────────────────────────────────────────────┤
857- * │ Convex types use the _input types_ │ Convex types use the _return types_ │
858- * │ of Zod transformations │ of Zod transformations │
859- * ├───────────────────────────────────────────────┼───────────────────────────────────────────────┤
860- * │ The Convex validator can be less strict │ The Convex validator can be less strict │
861- * │ (some inputs might be accepted by Convex │ (i.e. the type in Convex can be less precise │
862- * │ then rejected by Zod) │ than the type in the Zod output) │
863- * ├───────────────────────────────────────────────┼───────────────────────────────────────────────┤
864- * │ When using Zod schemas for function │ When using Zod schemas for function │
865- * │ definitions: used for _arguments_ │ definitions: used for _return values_ │
866- * ├───────────────────────────────────────────────┼───────────────────────────────────────────────┤
867- * │ When validating contents of the database │ When validating contents of the database │
868- * │ with a Zod schema: used to validate data │ with a Zod schema: used to validate data │
869- * │ _after reading_ │ _before writing_ │
870- * └───────────────────────────────────────────────┴───────────────────────────────────────────────┘
851+ * ┌─────────────────────────────────────┬─────────────────────────────────────┐
852+ * │ **zodToConvex** │ zodOutputToConvex │
853+ * ├─────────────────────────────────────┼─────────────────────────────────────┤
854+ * │ For when the Zod validator runs │ For when the Zod validator runs │
855+ * │ _after_ the Convex validator │ _before_ the Convex validator │
856+ * ├─────────────────────────────────────┼─────────────────────────────────────┤
857+ * │ Convex types use the _input types_ │ Convex types use the _return types_ │
858+ * │ of Zod transformations │ of Zod transformations │
859+ * ├─────────────────────────────────────┼─────────────────────────────────────┤
860+ * │ The Convex validator can be less │ The Convex validator can be less │
861+ * │ strict (i.e. some inputs might be │ strict (i.e. the type in Convex can │
862+ * │ accepted by Convex then rejected │ be less precise than the type in │
863+ * │ by Zod) │ the Zod output) │
864+ * ├─────────────────────────────────────┼─────────────────────────────────────┤
865+ * │ When using Zod schemas │ When using Zod schemas │
866+ * │ for function definitions: │ for function definitions: │
867+ * │ used for _arguments_ │ used for _return values_ │
868+ * ├─────────────────────────────────────┼─────────────────────────────────────┤
869+ * │ When validating contents of the │ When validating contents of the │
870+ * │ database with a Zod schema: │ database with a Zod schema: │
871+ * │ used to validate data │ used to validate data │
872+ * │ _after reading_ │ _before writing_ │
873+ * └─────────────────────────────────────┴─────────────────────────────────────┘
871874 * ```
872875 *
873876 * @param zod Zod validator can be a Zod object, or a Zod type like `z.string()`
@@ -1214,26 +1217,29 @@ export type ConvexValidatorFromZodOutput<Z extends z.ZodTypeAny> =
12141217 * for more details.
12151218 *
12161219 * ```
1217- * ┌───────────────────────────────────────────────┬───────────────────────────────────────────────┐
1218- * │ zodToConvex │ **zodOutputToConvex** │
1219- * ├───────────────────────────────────────────────┼───────────────────────────────────────────────┤
1220- * │ For when the Zod validator runs _after_ │ For when the Zod validator runs _before_ │
1221- * │ the Convex validator │ the Convex validator │
1222- * ├───────────────────────────────────────────────┼───────────────────────────────────────────────┤
1223- * │ Convex types use the _input types_ │ Convex types use the _return types_ │
1224- * │ of Zod transformations │ of Zod transformations │
1225- * ├───────────────────────────────────────────────┼───────────────────────────────────────────────┤
1226- * │ The Convex validator can be less strict │ The Convex validator can be less strict │
1227- * │ (some inputs might be accepted by Convex │ (i.e. the type in Convex can be less precise │
1228- * │ then rejected by Zod) │ than the type in the Zod output) │
1229- * ├───────────────────────────────────────────────┼───────────────────────────────────────────────┤
1230- * │ When using Zod schemas for function │ When using Zod schemas for function │
1231- * │ definitions: used for _arguments_ │ definitions: used for _return values_ │
1232- * ├───────────────────────────────────────────────┼───────────────────────────────────────────────┤
1233- * │ When validating contents of the database │ When validating contents of the database │
1234- * │ with a Zod schema: used to validate data │ with a Zod schema: used to validate data │
1235- * │ _after reading_ │ _before writing_ │
1236- * └───────────────────────────────────────────────┴───────────────────────────────────────────────┘
1220+ * ┌─────────────────────────────────────┬─────────────────────────────────────┐
1221+ * │ zodToConvex │ **zodOutputToConvex** │
1222+ * ├─────────────────────────────────────┼─────────────────────────────────────┤
1223+ * │ For when the Zod validator runs │ For when the Zod validator runs │
1224+ * │ _after_ the Convex validator │ _before_ the Convex validator │
1225+ * ├─────────────────────────────────────┼─────────────────────────────────────┤
1226+ * │ Convex types use the _input types_ │ Convex types use the _return types_ │
1227+ * │ of Zod transformations │ of Zod transformations │
1228+ * ├─────────────────────────────────────┼─────────────────────────────────────┤
1229+ * │ The Convex validator can be less │ The Convex validator can be less │
1230+ * │ strict (i.e. some inputs might be │ strict (i.e. the type in Convex can │
1231+ * │ accepted by Convex then rejected │ be less precise than the type in │
1232+ * │ by Zod) │ the Zod output) │
1233+ * ├─────────────────────────────────────┼─────────────────────────────────────┤
1234+ * │ When using Zod schemas │ When using Zod schemas │
1235+ * │ for function definitions: │ for function definitions: │
1236+ * │ used for _arguments_ │ used for _return values_ │
1237+ * ├─────────────────────────────────────┼─────────────────────────────────────┤
1238+ * │ When validating contents of the │ When validating contents of the │
1239+ * │ database with a Zod schema: │ database with a Zod schema: │
1240+ * │ used to validate data │ used to validate data │
1241+ * │ _after reading_ │ _before writing_ │
1242+ * └─────────────────────────────────────┴─────────────────────────────────────┘
12371243 * ```
12381244 *
12391245 * @param z The zod validator
0 commit comments