mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-11 23:40:24 +00:00
fix: checker
This commit is contained in:
@@ -3,9 +3,9 @@ import { ActionName } from '@/onebot/action/router';
|
||||
import { z } from 'zod';
|
||||
|
||||
const SchemaData = z.object({
|
||||
group_id: z.union([z.coerce.number(), z.coerce.string()]),
|
||||
user_id: z.union([z.coerce.number(), z.coerce.string()]),
|
||||
reject_add_request: z.union([z.coerce.boolean(), z.coerce.string()]).optional(),
|
||||
group_id: z.coerce.string(),
|
||||
user_id: z.coerce.string(),
|
||||
reject_add_request: z.coerce.boolean().optional(),
|
||||
});
|
||||
|
||||
type Payload = z.infer<typeof SchemaData>;
|
||||
|
||||
Reference in New Issue
Block a user