expo-backend-types 0.18.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ const zod_1 = require("zod");
8
8
  exports.eventSchema = zod_1.z.object({
9
9
  id: zod_1.z.string().uuid({ message: (0, translate_1.translate)('model.event.id.uuid') }),
10
10
  name: zod_1.z.string().min(1, (0, translate_1.translate)('model.event.name.required')),
11
- date: zod_1.z.date({
11
+ date: zod_1.z.coerce.date({
12
12
  required_error: (0, translate_1.translate)('model.event.date.required'),
13
13
  invalid_type_error: (0, translate_1.translate)('model.event.date.invalid'),
14
14
  }),