mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-13 00:10:27 +00:00
fix:coerce
This commit is contained in:
@@ -5,7 +5,7 @@ import { NetworkAdapterConfig } from '@/onebot/config/config';
|
||||
import { z } from 'zod';
|
||||
|
||||
const SchemaData = z.object({
|
||||
count: z.number().default(10),
|
||||
count: z.coerce.number().default(10),
|
||||
});
|
||||
|
||||
type Payload = z.infer<typeof SchemaData>;
|
||||
|
||||
Reference in New Issue
Block a user