Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
285 Bytes
import { z } from "zod";
import { idSchema } from "./id";
// Schema
export const itemSchema = z.object({
id: idSchema,
visible: z.boolean(),
});
// Type
export type Item = z.infer<typeof itemSchema>;
// Defaults
export const defaultItem: Item = {
id: "",
visible: true,
};