mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
feat: 补全一些type
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { DownloadBaseEmojiByIdReq, DownloadBaseEmojiByUrlReq, GetBaseEmojiPathReq, PullSysEmojisReq } from '../types';
|
||||
import { GeneralCallResult } from './common';
|
||||
|
||||
export interface NodeIKernelBaseEmojiService {
|
||||
removeKernelBaseEmojiListener(listenerId: number): void;
|
||||
@@ -7,7 +8,26 @@ export interface NodeIKernelBaseEmojiService {
|
||||
|
||||
isBaseEmojiPathExist(args: Array<string>): unknown;
|
||||
|
||||
fetchFullSysEmojis(pullSysEmojisReq: PullSysEmojisReq): unknown;
|
||||
fetchFullSysEmojis(pullSysEmojisReq: PullSysEmojisReq): Promise<GeneralCallResult & {
|
||||
rsp: {
|
||||
otherPanelResult: {
|
||||
SysEmojiGroupList: Array<unknown>,
|
||||
downloadInfo: Array<unknown>
|
||||
},
|
||||
normalPanelResult: {
|
||||
SysEmojiGroupList: Array<unknown>,
|
||||
downloadInfo: Array<unknown>
|
||||
},
|
||||
superPanelResult: {
|
||||
SysEmojiGroupList: Array<unknown>,
|
||||
downloadInfo: Array<unknown>
|
||||
},
|
||||
redHeartPanelResult: {
|
||||
SysEmojiGroupList: Array<unknown>,
|
||||
downloadInfo: Array<unknown>
|
||||
}
|
||||
}
|
||||
}>;
|
||||
|
||||
getBaseEmojiPathByIds(getBaseEmojiPathReqs: Array<GetBaseEmojiPathReq>): unknown;
|
||||
|
||||
|
@@ -468,7 +468,7 @@ export interface NodeIKernelMsgService {
|
||||
|
||||
setCurOnScreenMsg(...args: unknown[]): unknown;
|
||||
|
||||
setCurOnScreenMsgForMsgEvent(...args: unknown[]): unknown;
|
||||
setCurOnScreenMsgForMsgEvent(peer: Peer, msgRegList: Map<string, Uint8Array>): void;
|
||||
|
||||
getMiscData(key: string): unknown;
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
import { NodeIKernelRobotListener } from '@/core/listeners';
|
||||
import { GeneralCallResult, Peer } from '..';
|
||||
|
||||
export interface NodeIKernelRobotService {
|
||||
fetchGroupRobotStoreDiscovery(arg: unknown): unknown;
|
||||
@@ -31,5 +32,17 @@ export interface NodeIKernelRobotService {
|
||||
|
||||
getRobotUinRange(data: unknown): Promise<{ response: { robotUinRanges: Array<unknown> } }>;
|
||||
|
||||
getRobotFunctions(peer: Peer, params: {
|
||||
uins: Array<string>,
|
||||
num: 0,
|
||||
client_info: { platform: 4, version: '', build_num: 9999 },
|
||||
tinyids: [],
|
||||
page: 0,
|
||||
full_fetch: false,
|
||||
scene: 4,
|
||||
filter: 1,
|
||||
bkn: ''
|
||||
}): Promise<GeneralCallResult & { response: { bot_features: Array<unknown>, next_page: number } }>;
|
||||
|
||||
isNull(): boolean;
|
||||
}
|
||||
|
Reference in New Issue
Block a user