@@ -20,7 +20,6 @@ import type {
2020 TypingEndEvent ,
2121 TypingStartEvent ,
2222} from '@js/ui/chat' ;
23- import type { Properties as SpeechToTextProperties } from '@js/ui/speech_to_text' ;
2423import { invokeConditionally } from '@ts/core/utils/conditional_invoke' ;
2524import type { OptionChanged } from '@ts/core/widget/types' ;
2625import Widget from '@ts/core/widget/widget' ;
@@ -41,15 +40,10 @@ import type {
4140import MessageList from '@ts/ui/chat/messagelist' ;
4241import type { DataChange } from '@ts/ui/collection/collection_widget.base' ;
4342
44- type Properties = ChatProperties & {
45- speechToTextEnabled ?: boolean ;
46- speechToTextOptions ?: SpeechToTextProperties ;
47- } ;
48-
4943const CHAT_CLASS = 'dx-chat' ;
5044const TEXTEDITOR_INPUT_CLASS = 'dx-texteditor-input' ;
5145
52- class Chat extends Widget < Properties > {
46+ class Chat extends Widget < ChatProperties > {
5347 _messageBox ! : MessageBox ;
5448
5549 _messageList ! : MessageList ;
@@ -82,7 +76,7 @@ class Chat extends Widget<Properties> {
8276
8377 _attachmentDownloadAction ?: ( e : Partial < AttachmentDownloadClickEvent > ) => void ;
8478
85- _getDefaultOptions ( ) : Properties {
79+ _getDefaultOptions ( ) : ChatProperties {
8680 return {
8781 ...super . _getDefaultOptions ( ) ,
8882 activeStateEnabled : true ,
@@ -645,7 +639,7 @@ class Chat extends Widget<Properties> {
645639 return $input ;
646640 }
647641
648- _optionChanged ( args : OptionChanged < Properties > ) : void {
642+ _optionChanged ( args : OptionChanged < ChatProperties > ) : void {
649643 const { name, fullName, value } = args ;
650644
651645 switch ( name ) {
@@ -660,7 +654,7 @@ class Chat extends Widget<Properties> {
660654 this . _messageBox . option ( fullName , value ) ;
661655 break ;
662656 case 'user' : {
663- const author = value as Properties [ typeof name ] ;
657+ const author = value as ChatProperties [ typeof name ] ;
664658
665659 this . _messageList . option ( 'currentUserId' , author ?. id ) ;
666660 break ;
0 commit comments