style: 强类型大法

This commit is contained in:
手瓜一十雪
2025-02-02 23:22:21 +08:00
parent 76501bae34
commit 70945cf2d8
191 changed files with 923 additions and 806 deletions

View File

@@ -20,7 +20,7 @@ export interface NodeIKernelGroupService {
getAllGroupPrivilegeFlag(troopUinList: string[], serviceType: number): Promise<unknown>;
// <---
getGroupExt0xEF0Info(enableGroupCodes: string[], bannedGroupCodes: string[], filter: GroupExt0xEF0InfoFilter, forceFetch: boolean):
Promise<GeneralCallResult & { result: { groupExtInfos: Map<string, any> } }>;
Promise<GeneralCallResult & { result: { groupExtInfos: Map<string, unknown> } }>;
kickMemberV2(param: KickMemberV2Req): Promise<GeneralCallResult>;
@@ -153,7 +153,7 @@ export interface NodeIKernelGroupService {
getMemberExtInfo(param: GroupExtParam): Promise<unknown>;//req
getGroupAllInfo(groupId: string, sourceId: number): Promise<any>;
getGroupAllInfo(groupId: string, sourceId: number): Promise<unknown>;
getDiscussExistInfo(): unknown;
@@ -213,7 +213,7 @@ export interface NodeIKernelGroupService {
deleteGroupBulletin(groupCode: string, seq: string, noticeId: string): void;
publishGroupBulletin(groupCode: string, pskey: string, data: any): Promise<GeneralCallResult>;
publishGroupBulletin(groupCode: string, pskey: string, data: unknown): Promise<GeneralCallResult>;
publishInstructionForNewcomers(groupCode: string, arg: unknown): void;