Keith Williams and Devin AI
851cca25aa
perf: add z.ZodType annotations to high-impact schemas ( #26114 )
...
* perf: add z.ZodType annotations to high-impact schemas
Add explicit type annotations to reduce TypeScript type inference overhead
and .d.ts file bloat in the tRPC package.
Changes:
- packages/prisma/zod-utils.ts: Add EventTypeLocation type and annotate eventTypeLocations schema
- packages/features/eventtypes/lib/schemas.ts: Add TEventTypeDuplicateInput and TCreateEventTypeInput types with annotations
- packages/app-store/routing-forms/zod.ts: Add FieldOption, TNonRouterField, TRouterField, TField, TFields types with annotations for zodField and zodFields
These schemas feed into multiple tRPC routers and were identified as high-impact
targets for reducing type checking time and declaration file sizes.
Co-Authored-By: keith@cal.com <keithwillcode@gmail.com >
* fix: replace z.infer with explicit types and define EventTypeLocation locally
Address PR feedback:
- Replace z.infer<typeof calVideoSettingsSchema> with explicit CalVideoSettings type
- Define EventTypeLocation type locally instead of importing from prisma
- Add z.ZodType annotation to calVideoSettingsSchema
Note: Still importing Zod schemas from @calcom/prisma/zod-utils for validation.
Awaiting guidance on whether to move those to @calcom/lib.
Co-Authored-By: keith@cal.com <keithwillcode@gmail.com >
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2025-12-21 23:15:04 -03:00
..
2025-12-21 12:40:27 +00:00
2025-11-04 15:55:09 +00:00
2025-12-22 02:00:19 +00:00
2025-12-15 10:43:22 +00:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-12-15 10:43:22 +00:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-12-04 05:45:17 +00:00
2025-12-02 02:18:25 +00:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-10-21 20:02:03 +01:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-10-07 14:42:29 +00:00
2025-10-07 15:12:22 +00:00
2025-09-24 22:20:49 +09:00
2025-11-25 17:32:28 -03:00
2025-12-20 13:45:44 -03:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-12-15 10:43:22 +00:00
2025-09-24 22:20:49 +09:00
2025-12-12 18:55:19 +00:00
2025-09-24 22:20:49 +09:00
2025-12-04 05:49:34 +00:00
2025-11-25 17:32:28 -03:00
2025-12-04 05:36:24 +00:00
2025-10-14 09:25:07 +00:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-12-20 06:33:46 +00:00
2025-11-20 18:02:18 +02:00
2025-12-15 10:43:22 +00:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-11-25 17:32:28 -03:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-12-21 23:15:04 -03:00
2025-11-11 23:56:51 +00:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-12-21 10:18:07 -03:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-11-25 17:32:28 -03:00
2025-04-28 18:11:29 -03:00
2025-09-24 22:20:49 +09:00
2025-11-25 17:32:28 -03:00
2025-09-24 22:20:49 +09:00
2025-11-28 09:14:06 +01:00
2025-11-25 17:32:28 -03:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-11-11 14:21:10 +02:00
2025-09-24 22:20:49 +09:00
2025-12-11 11:31:59 +00:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-10-21 20:02:03 +01:00
2022-06-24 09:38:17 -06:00
2022-06-24 09:38:17 -06:00
2025-09-12 19:02:17 +00:00
2025-12-09 17:56:20 +00:00
2025-12-09 17:56:20 +00:00
2025-12-02 02:18:25 +00:00
2025-12-02 02:18:25 +00:00
2025-12-02 02:18:25 +00:00
2025-12-02 02:18:25 +00:00
2025-12-02 02:18:25 +00:00
2023-10-10 09:46:04 +05:30
2025-12-02 02:18:25 +00:00
2023-08-24 13:38:15 -07:00
2024-05-31 16:07:09 +00:00
2024-12-04 15:07:30 +00:00
2025-09-12 19:02:17 +00:00
2025-09-08 08:38:46 -03:00
2023-10-03 11:52:19 -07:00
2025-03-05 14:58:02 -03:00
2025-12-19 12:21:48 +00:00
2025-12-19 12:21:48 +00:00
2025-12-01 09:14:05 +00:00
2023-12-20 13:29:23 -05:00
2023-08-29 11:32:20 +05:30
2023-04-26 12:03:34 +01:00
2023-10-10 09:46:04 +05:30
2025-10-10 07:11:46 -03:00
2025-09-06 09:39:26 -03:00
2025-09-06 09:39:26 -03:00
2025-12-01 14:04:24 +04:00
2025-12-21 10:18:07 -03:00
2025-08-28 10:05:36 -03:00
2025-10-09 14:02:12 +00:00
2025-09-19 10:16:56 -03:00
2025-03-03 15:53:28 -03:00
2025-09-14 12:51:05 +00:00
2025-11-21 15:51:23 +00:00
2025-11-21 15:51:23 +00:00
2025-09-12 19:02:17 +00:00
2025-09-12 05:57:09 -03:00