mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
@@ -4,9 +4,9 @@ import { ActionName } from '@/onebot/action/router';
|
||||
import { z } from 'zod';
|
||||
|
||||
const SchemaData = z.object({
|
||||
flag: z.coerce.string(),
|
||||
flag: z.union([z.coerce.string(), z.coerce.number()]),
|
||||
approve: z.coerce.boolean().default(true),
|
||||
reason: z.coerce.string().nullable().default(' '),
|
||||
reason: z.union([z.coerce.string(), z.null()]).default(' '),
|
||||
});
|
||||
|
||||
type Payload = z.infer<typeof SchemaData>;
|
||||
|
||||
Reference in New Issue
Block a user