fix: nullable

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

No files matched your search

+2 -2
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>;