mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
feat: validate page count
This commit is contained in:
parent
e201a76597
commit
9228eddc2c
@ -22,6 +22,8 @@ export const ImageOptionsSchema: Yup.SchemaOf<ImageOptions> = Yup.object({
|
||||
size: Yup.mixed<ImageSize>().oneOf(['128', '256', '512']).required()
|
||||
})
|
||||
|
||||
export const PageCount = Yup.number().integer().positive()
|
||||
|
||||
interface ImageOptions {
|
||||
id: string
|
||||
ext: ext
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user