style: 规范写法

This commit is contained in:
手瓜一十雪
2024-10-15 09:11:00 +08:00
parent 030ba15952
commit 169ae6a4d0
4 changed files with 11 additions and 8 deletions

View File

@@ -387,8 +387,8 @@ export class NTQQFileApi {
rkeyData.online_rkey = true;
}
}
} catch (error) {
} catch (error: any) {
this.context.logger.logError.bind(this.context.logger)('获取rkey失败', error.message);
}
if (!rkeyData.online_rkey) {

View File

@@ -288,9 +288,9 @@ export interface User {
export interface SelfInfo extends User {
online?: boolean;
}
export type Friend = User;
export interface Friend extends User {
}
// 本来是 Friend extends User 现在用不到
export enum BizKey {
KPRIVILEGEICON,

View File

@@ -1,2 +1,3 @@
export interface NodeIKernelECDHService {
sendOIDBECRequest: (data: Uint8Array) => Promise<Uint8Array>;
}