mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +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({
|
||||
type: Yup.string().oneOf(['VOTE', 'TRUSTED', 'NEW', 'PARTNERED', 'CATEGORY', 'SEARCH']).required(),
|
||||
page: Yup.number().positive().integer().optional().default(1),
|
||||
query: Yup.string().optional()
|
||||
page: Yup.number().positive().integer().notRequired().default(1),
|
||||
query: Yup.string().notRequired()
|
||||
})
|
||||
|
||||
export interface botListArgument extends Yup.Asserts<typeof botListArgumentSchema> {
|
||||
export interface botListArgument {
|
||||
type: ListType
|
||||
page?: number
|
||||
query?: string
|
||||
}
|
||||
export default Yup
|
||||
Loading…
x
Reference in New Issue
Block a user