Skip to content

Commit

Permalink
🎨 fix: 类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Lain. committed Apr 30, 2024
1 parent e9c281c commit 23cb6e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/adapter/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class KarinAdapter {
/**
* @type {{
* app_name: string,
* app_version: string
* version: string
* }}
*/
version
Expand All @@ -24,7 +24,7 @@ export class KarinAdapter {
* @type {{
* name?: string,
* uid: string,
* uin: number,
* uin: number|string,
* }}
*/
account
Expand Down
4 changes: 2 additions & 2 deletions lib/bot/KarinEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class KarinEvent {
* @callback replyCallback
* @param {Array<KarinElement>} elements - 发送的消息元素 只能是数组
* @param {number} retry_count - 重试次数
* @returns {{ message_id?: string }}
* @returns {Promise<{ message_id?: string }>} - 返回消息ID
*/

/**
Expand All @@ -172,5 +172,5 @@ export class KarinEvent {
* @param {number} [options.recallMsg] - 群聊是否撤回消息,0-120秒,0不撤回
* @param {boolean} [options.button] - 是否使用按钮
* @param {number} [options.retry_count] - 重试次数
* @returns {{ message_id?: string }}
* @returns {Promise<{ message_id?: string }>} - 返回消息ID
*/
2 changes: 1 addition & 1 deletion lib/common/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Common {

/**
* 添加一个触发账号前缀
* @param {string} id 触发账号
* @param {string|number} id 触发账号
* @param {string[]}args 日志参数
* @returns {string} 带触发账号前缀的日志
*/
Expand Down

0 comments on commit 23cb6e0

Please sign in to comment.