feat: release v1.0.0
This commit is contained in:
@@ -18,6 +18,7 @@ export const postSchema = z.object({
|
||||
published_at: z.string(),
|
||||
created_at: z.string(),
|
||||
updated_at: z.string(),
|
||||
tags: z.array(z.number().int()),
|
||||
})
|
||||
|
||||
export type Post = z.infer<typeof postSchema>
|
||||
@@ -41,6 +42,7 @@ export const postFormSchema = z
|
||||
.int()
|
||||
.optional()
|
||||
.refine((v) => v !== undefined, '请选择文章分类'),
|
||||
tags: z.array(z.number().int()).optional(),
|
||||
})
|
||||
.transform((data) => {
|
||||
const { cover, ...rest } = data
|
||||
|
||||
Reference in New Issue
Block a user