Skip to content

Commit

Permalink
Chat: Make the message in onMessageEntered and user in onTypingStart/…
Browse files Browse the repository at this point in the history
…End required
  • Loading branch information
Ruslan Farkhutdinov committed Feb 19, 2025
1 parent 7a3bd87 commit c2e41af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/devextreme/js/ui/chat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export type OptionChangedEvent = EventInfo<dxChat> & ChangedOptionInfo;
*/
export type MessageEnteredEvent = NativeEventInfo<dxChat, KeyboardEvent | PointerEvent | MouseEvent | TouchEvent> & {
/** @docid _ui_chat_MessageEnteredEvent.message */
readonly message?: Message;
readonly message: Message;
};

/**
Expand All @@ -74,7 +74,7 @@ export type TypingStartEvent = NativeEventInfo<dxChat, UIEvent & { target: HTMLI
*/
export type TypingEndEvent = EventInfo<dxChat> & {
/** @docid _ui_chat_TypingEndEvent.user */
readonly user?: User;
readonly user: User;
};

/**
Expand Down

0 comments on commit c2e41af

Please sign in to comment.