feat: added Yup

This commit is contained in:
원더 2021-01-09 15:29:15 +09:00
parent 25628c5b7b
commit 3b627915f6

9
utils/Yup.ts Normal file
View 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