blocksuite
blocksuite copied to clipboard
feat: create zod union
Add util function for creating zod union from arrays
example: packages/blocks/src/_common/consts:
The example shows that when creating a zod scheme, there are repetitions of values from the array. Such use leads to an unguaranteed schema change when changing the values of this array. This can be avoided using createZodUnion utility
+simplification of the code +ensuring an up-to-date scheme
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| blocksuite | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 1, 2024 10:17am |
1 Ignored Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| blocksuite-docs | ⬜️ Ignored (Inspect) | Visit Preview | May 1, 2024 10:17am |