rozwiązanie kolejnych todo i pozbycie się zbędnych paczek npm.
This commit is contained in:
1 parent
d4dfed9603
commit
827b53e630
5 files changed
+179
-458
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user