mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
types: fixed typing
This commit is contained in:
parent
a1479af186
commit
1757b58a6a
@ -6,11 +6,13 @@ Yup.setLocale(YupKorean)
|
|||||||
|
|
||||||
export const botListArgumentSchema = Yup.object({
|
export const botListArgumentSchema = Yup.object({
|
||||||
type: Yup.string().oneOf(['VOTE', 'TRUSTED', 'NEW', 'PARTNERED', 'CATEGORY', 'SEARCH']).required(),
|
type: Yup.string().oneOf(['VOTE', 'TRUSTED', 'NEW', 'PARTNERED', 'CATEGORY', 'SEARCH']).required(),
|
||||||
page: Yup.number().positive().integer().optional().default(1),
|
page: Yup.number().positive().integer().notRequired().default(1),
|
||||||
query: Yup.string().optional()
|
query: Yup.string().notRequired()
|
||||||
})
|
})
|
||||||
|
|
||||||
export interface botListArgument extends Yup.Asserts<typeof botListArgumentSchema> {
|
export interface botListArgument {
|
||||||
type: ListType
|
type: ListType
|
||||||
|
page?: number
|
||||||
|
query?: string
|
||||||
}
|
}
|
||||||
export default Yup
|
export default Yup
|
||||||
Loading…
x
Reference in New Issue
Block a user