const entryForm = z.object({
id: z.number(),
title: z.string().min(1, 'Title too short'),
description: z.string()
})
const attachForm = z.array(entryForm);
type EntryForm = z.infer<typeof entryForm>;
type AttachForm = z.infer<typeof attachForm>;
const extState: AttachForm = reactive([]);
const entryForm = z.object({
id: z.number(),
title: z.string().min(1, 'Title too short'),
description: z.string()
})
const attachForm = z.array(entryForm);
type EntryForm = z.infer<typeof entryForm>;
type AttachForm = z.infer<typeof attachForm>;
const extState: AttachForm = reactive([]);