mirror of
https://github.com/khairul169/garage-webui.git
synced 2025-04-28 06:49:32 +07:00
11 lines
263 B
TypeScript
11 lines
263 B
TypeScript
import { z } from "zod";
|
|
|
|
export const createFolderSchema = z.object({
|
|
name: z
|
|
.string()
|
|
.min(1, "Folder Name is required")
|
|
.regex(/^[a-zA-Z0-9_-]+$/, "Folder Name invalid"),
|
|
});
|
|
|
|
export type CreateFolderSchema = z.infer<typeof createFolderSchema>;
|