rozwiązanie kolejnych todo i pozbycie się zbędnych paczek npm.

This commit is contained in:
2025-10-10 14:45:04 +02:00
parent d4dfed9603
commit 827b53e630
5 changed files with 179 additions and 458 deletions

View File

@@ -42,7 +42,7 @@ export const pbJsonField = (maxSizeInBytes: number = 1048576) => {
const stringTransform = z.string()
.max(maxSizeInBytes, `JSON field cannot exceed ${maxSizeInBytes} bytes`)
.transform((val) => {
.transform((val: string) => {
if (val === "true") return true;
if (val === "false") return false;
if (val === "null") return null;