迁移类型校验到zod

This commit is contained in:
手瓜一十雪 committed 2025-04-13 20:05:11 +08:00
1 parent 4084e431ec
commit 8a116d2d7b
101 files changed
+951 -945

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ export class GetRkeyEx extends GetPacketStatusDepends<void, unknown> {
let rkeys = await this.core.apis.PacketApi.pkt.operation.FetchRkey();
return rkeys.map(rkey => {
return {
type: rkey.type === 10 ? "private" : "group",
type: rkey.type === 10 ? 'private' : 'group',
rkey: rkey.rkey,
created_at: rkey.time,
ttl: rkey.ttl,