mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: 修掉漏掉的
This commit is contained in:
@@ -5,7 +5,7 @@ import { z } from 'zod';
|
|||||||
const SchemaData = z.object({
|
const SchemaData = z.object({
|
||||||
group_id: z.union([z.number(), z.string()]),
|
group_id: z.union([z.number(), z.string()]),
|
||||||
user_id: z.union([z.number(), z.string()]),
|
user_id: z.union([z.number(), z.string()]),
|
||||||
special_title: z.string({ default: '' }),
|
special_title: z.string().default(''),
|
||||||
});
|
});
|
||||||
|
|
||||||
type Payload = z.infer<typeof SchemaData>;
|
type Payload = z.infer<typeof SchemaData>;
|
||||||
|
@@ -3,7 +3,7 @@ import { ActionName } from '@/onebot/action/router';
|
|||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
const SchemaData = z.object({
|
const SchemaData = z.object({
|
||||||
words: Type.Array(z.string()),
|
words: z.array(z.string()),
|
||||||
});
|
});
|
||||||
|
|
||||||
type Payload = z.infer<typeof SchemaData>;
|
type Payload = z.infer<typeof SchemaData>;
|
||||||
|
@@ -2,8 +2,6 @@ import { z } from 'zod';
|
|||||||
|
|
||||||
export const themeType = z.object(
|
export const themeType = z.object(
|
||||||
{
|
{
|
||||||
// dark: Type.Record(Type.String(), Type.String()),
|
|
||||||
// light: Type.Record(Type.String(), Type.String()),
|
|
||||||
dark: z.record(z.string(), z.string()),
|
dark: z.record(z.string(), z.string()),
|
||||||
light: z.record(z.string(), z.string()),
|
light: z.record(z.string(), z.string()),
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user