style: 强类型大法

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

No files matched your search

-1
View File
@@ -1,5 +1,4 @@
export interface OB11User {
[key: string]: any;
user_id: number; // 用户ID
nickname: string; // 昵称
remark?: string; // 备注
+1 -1
View File
@@ -42,7 +42,7 @@ export interface OB11Return<DataType> {
retcode: number;
data: DataType;
message: string;
echo?: any; // ws调用api才有此字段
echo?: unknown; // ws调用api才有此字段
wording?: string; // go-cqhttp字段,错误信息
}