fix: type-check

This commit is contained in:
手瓜一十雪
2024-12-01 12:50:13 +08:00
parent 1bb6dce239
commit 7221f4ac02

View File

@@ -5,7 +5,7 @@ import { ActionName } from '@/onebot/action/router';
import { Static, Type } from '@sinclair/typebox'; import { Static, Type } from '@sinclair/typebox';
const SchemaData = Type.Object({ const SchemaData = Type.Object({
no_cache: Type.Union([Type.Boolean(), Type.String()]), no_cache: Type.Optional(Type.Union([Type.Boolean(), Type.String()])),
}); });
type Payload = Static<typeof SchemaData>; type Payload = Static<typeof SchemaData>;