mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
17 lines
354 B
TypeScript
17 lines
354 B
TypeScript
import { z } from "zod";
|
|
import { zEmail, zString } from "@/lib/zod";
|
|
|
|
export const UserSchema = z.object({
|
|
email: zEmail(),
|
|
name: zString(),
|
|
});
|
|
|
|
export type UserType = z.infer<typeof UserSchema>;
|
|
|
|
export const UserEditSchema = z.object({
|
|
email: zEmail(),
|
|
name: zString(),
|
|
});
|
|
|
|
export type UserEditType = z.infer<typeof UserEditSchema>;
|