chore: init

This commit is contained in:
Kuizuo
2024-04-26 02:12:44 +08:00
commit 5231e5f565
298 changed files with 44435 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { createZodDto } from 'nestjs-zod'
import { z } from 'zod'
export const ImageSchema = z.object({
src: z.string(),
width: z.number().optional(),
height: z.number().optional(),
})
export const ImagesSchema = z.array(ImageSchema)
export class ImagesDto extends createZodDto(ImagesSchema) {}
export type Image = z.infer<typeof ImageSchema>