rozwiązanie kolejnych todo i pozbycie się zbędnych paczek npm.
This commit is contained in:
@@ -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