fix: nullable

This commit is contained in:
手瓜一十雪
2024-12-01 13:04:00 +08:00
parent 7221f4ac02
commit 9eaf51e15f
2 changed files with 4 additions and 4 deletions

View File

@@ -5,8 +5,8 @@ import { MessageUnique } from '@/common/message-unique';
import { Static, Type } from '@sinclair/typebox';
const SchemaData = Type.Object({
message_id: Type.Union([Type.Number(), Type.String()]),
id: Type.Union([Type.Number(), Type.String()]),
message_id: Type.Optional(Type.Union([Type.Number(), Type.String()])),
id: Type.Optional(Type.Union([Type.Number(), Type.String()])),
});
type Payload = Static<typeof SchemaData>;