From 3963ab61e74446dbbfa500ab595406fbc5153635 Mon Sep 17 00:00:00 2001 From: Il Harper Date: Fri, 23 Aug 2024 15:06:23 +0800 Subject: [PATCH] fix(shell): uix: fix `getUix2()` type --- packages/shell/src/services/uix.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/shell/src/services/uix.ts b/packages/shell/src/services/uix.ts index c7d455b..71195ce 100644 --- a/packages/shell/src/services/uix.ts +++ b/packages/shell/src/services/uix.ts @@ -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