迁移类型校验到zod
This commit is contained in:
1 parent
4084e431ec
commit
8a116d2d7b
101 files changed
+951
-945
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user