Skip to content

Commit

Permalink
more code typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Jun 16, 2024
1 parent bd91ccb commit 1f0c231
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/.decls/cn/types/jsstp_t.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ declare class jsstp_t {
* @returns {Promise<String>} 返回一个promise
* @group 基础送信函数
*/
costom_text_send(sstphead: String, info: Object): Promise<String>;
custom_text_send(sstphead: String, info: Object): Promise<String>;
/**
* 发送报文
* @param {String} sstphead 报文头
Expand Down
2 changes: 1 addition & 1 deletion src/.decls/en/types/jsstp_t.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ declare class jsstp_t {
* @returns {Promise<String>} Returns a promise.
* @group Basic Send Methods
*/
costom_text_send(sstphead: String, info: Object): Promise<String>;
custom_text_send(sstphead: String, info: Object): Promise<String>;
/**
* Send a custom message
* @param {String} sstphead Message header
Expand Down
2 changes: 1 addition & 1 deletion src/.decls/jp/types/jsstp_t.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ declare class jsstp_t {
* @returns {Promise<String>} プロミスを返します。
* @group 基本的なメッセージング関数
*/
costom_text_send(sstphead: String, info: Object): Promise<String>;
custom_text_send(sstphead: String, info: Object): Promise<String>;
/**
* @returns {Promise<sstp_info_t>} プロミスを返します。
* メッセージの送信
Expand Down
6 changes: 3 additions & 3 deletions src/types/jsstp_t.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class jsstp_t {
* @returns {Promise<String>} 返回一个promise
* @group Basic Send Methods
*/
costom_text_send(sstphead, info) {
custom_text_send(sstphead, info) {
return this.row_send((new base_sstp_info_t(sstphead, { ...this.default_info, ...info })).text_content)
}
/**
Expand All @@ -198,7 +198,7 @@ class jsstp_t {
* @group Basic Send Methods
*/
custom_send(sstphead, info, result_type = sstp_info_t) {
return this.costom_text_send(sstphead, info).then(
return this.custom_text_send(sstphead, info).then(
result => new result_type(result)
)
}
Expand All @@ -218,7 +218,7 @@ class jsstp_t {
/*@__PURE__*/get_caller_of_method(method_name, result_type = sstp_info_t, args_processor = info => info) {
let header = get_sstp_header(method_name, this.sstp_version_table)
return assign((...args) => this.custom_send(header, args_processor(...args), result_type), {
get_raw: (...args) => this.costom_text_send(header, args_processor(...args)),
get_raw: (...args) => this.custom_text_send(header, args_processor(...args)),
with_type: (result_type) => this.get_caller_of_method(method_name, result_type, args_processor),
bind_args_processor: (processor) => this.get_caller_of_method(method_name, result_type, processor)
})
Expand Down

0 comments on commit 1f0c231

Please sign in to comment.