Skip to content

Commit 594b417

Browse files
changes in chat message
1 parent 861ad73 commit 594b417

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"license": "MIT",
1919
"homepage": "https://codeboltai.github.io",
2020
"dependencies": {
21-
"@codebolt/types": "^1.0.9",
21+
"@codebolt/types": "^1.0.10",
2222
"tree-sitter": "^0.21.1",
2323
"tree-sitter-javascript": "^0.21.2",
2424
"typedoc-plugin-missing-exports": "^2.2.0",

src/modules/chat.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// chat.ts
22
import cbws from './websocket';
33
import { EventEmitter } from 'events';
4-
import {ChatMessage} from '@codebolt/types'
4+
import {ChatMessage,UserMessage} from '@codebolt/types'
55

66

77

@@ -63,9 +63,9 @@ const cbchat = {
6363
/**
6464
* Waits for a reply to a sent message.
6565
* @param {string} message - The message for which a reply is expected.
66-
* @returns {Promise<ChatMessage>} A promise that resolves with the reply.
66+
* @returns {Promise<UserMessage>} A promise that resolves with the reply.
6767
*/
68-
waitforReply: (message: string): Promise<string> => {
68+
waitforReply: (message: string): Promise<UserMessage> => {
6969
return new Promise((resolve, reject) => {
7070
cbws.getWebsocket.send(JSON.stringify({
7171
"type": "waitforReply",

0 commit comments

Comments
 (0)