fuma 0.3.18 → 0.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -142,6 +142,7 @@ export declare const z: {
142
142
  }>>]>>;
143
143
  boolean: zod.ZodEffects<zod.ZodOptional<zod.ZodString>, boolean, string | undefined>;
144
144
  };
145
+ booleanAsString: zod.ZodEffects<zod.ZodEnum<["true", "false"]>, boolean, "true" | "false">;
145
146
  z: typeof zod.z;
146
147
  setErrorMap(map: zod.ZodErrorMap): void;
147
148
  getErrorMap(): zod.ZodErrorMap;
@@ -78,6 +78,7 @@ export const z = {
78
78
  arrayRaw: zod.array, // TODO: remove
79
79
  relation,
80
80
  relations,
81
- filter
81
+ filter,
82
+ booleanAsString: zod.enum(['true', 'false']).transform((value) => value === 'true')
82
83
  };
83
84
  export const toTuple = Object.keys;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",