mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
fix: zod boolean强制转换
This commit is contained in:
@@ -6,11 +6,11 @@ import { uriToLocalFile } from '@/common/file';
|
||||
import { SendMessageContext } from '@/onebot/api';
|
||||
import { ContextMode, createContext } from '@/onebot/action/msg/SendMsg';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { actionType } from '../type';
|
||||
const SchemaData = z.object({
|
||||
user_id: z.coerce.string(),
|
||||
file: z.coerce.string(),
|
||||
name: z.coerce.string(),
|
||||
user_id: actionType.string(),
|
||||
file: actionType.string(),
|
||||
name: actionType.string(),
|
||||
});
|
||||
|
||||
type Payload = z.infer<typeof SchemaData>;
|
||||
|
||||
Reference in New Issue
Block a user