fix: Fix type

This commit is contained in:
Misa Liu
2024-02-27 23:27:00 +08:00
parent 3ec1134204
commit 11108bc13f
3 changed files with 7 additions and 7 deletions

View File

@@ -766,7 +766,7 @@ export class NTQQApi {
});
}
static getChatCacheList(type: 1 | 2, pageSize: number = 80, pageIndex: number = 0) {
static getChatCacheList(type: ChatType, pageSize: number = 80, pageIndex: number = 0) {
return new Promise<ChatCacheList>((res, rej) => {
callNTQQApi<ChatCacheList>({
methodName: NTQQApiMethod.CACHE_CHAT_GET,

View File

@@ -377,7 +377,7 @@ export interface ChatCacheList {
}
export interface ChatCacheListItem {
chatType: 1 | 2,
chatType: ChatType,
basicChatCacheInfo: ChatCacheListItemBasic,
guildChatCacheInfo: unknown[] // TODO: 没用过频道所以不知道这里边的详细内容
}
@@ -389,6 +389,6 @@ export interface ChatCacheListItemBasic {
uin: string,
remarkName: string,
nickName: string,
chatType?: 1 | 2,
chatType?: ChatType,
isChecked?: boolean
}