fix(shell): uix: fix getUix2() type

This commit is contained in:
Il Harper 2024-08-23 15:06:23 +08:00
parent 550f38047d
commit 3963ab61e7
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC

View File

@ -66,7 +66,7 @@ export class Uix extends UixEventEmitter {
return uin
}
getUin2 = async (uid: string, group: string | number | undefined) => {
getUin2 = async (uid: string, group?: string | number) => {
if (!isUid(uid)) return undefined
let uin: string | undefined
if (group) {
@ -99,7 +99,7 @@ export class Uix extends UixEventEmitter {
return uid
}
getUid2 = async (uin: string, _group: string | number | undefined) => {
getUid2 = async (uin: string, _group?: string | number) => {
if (!isUin(uin)) return undefined
// if (group) {
// if (!isGroup(group)) return undefined