mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
feat: added Yup
This commit is contained in:
parent
25628c5b7b
commit
3b627915f6
9
utils/Yup.ts
Normal file
9
utils/Yup.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import * as Yup from 'yup'
|
||||
|
||||
export const botListArgument = Yup.object({
|
||||
type: Yup.string().oneOf(['VOTE', 'TRUSTED', 'NEW', 'PARTNERED', 'CATEGOORY', 'SEARCH']).required(),
|
||||
page: Yup.number().positive().integer().optional().default(1),
|
||||
query: Yup.string().optional()
|
||||
})
|
||||
|
||||
export default Yup
|
||||
Loading…
x
Reference in New Issue
Block a user