Skip to content

Commit 1e08f95

Browse files
d.ts -> react: no generic AttachmentDownloadEvent -> fails on NarrowedEvents
1 parent 5777183 commit 1e08f95

3 files changed

Lines changed: 11 additions & 15 deletions

File tree

packages/devextreme-react/src/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type ReplaceFieldTypes<TSource, TReplacement> = {
1919
}
2020

2121
type IChatOptionsNarrowedEvents = {
22-
onAttachmentDownload?: ((e: AttachmentDownloadEvent<TAttachment>) => void) | undefined;
22+
onAttachmentDownload?: ((e: AttachmentDownloadEvent) => void) | undefined;
2323
onDisposing?: ((e: DisposingEvent) => void);
2424
onInitialized?: ((e: InitializedEvent) => void);
2525
onMessageDeleted?: ((e: MessageDeletedEvent) => void) | undefined;

packages/devextreme/js/ui/chat.d.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,9 @@ export type MessageUpdatedEvent = EventInfo<dxChat> & {
160160
* @type object
161161
* @inherits EventInfo
162162
*/
163-
export type AttachmentDownloadEvent<TAttachment extends Attachment = Attachment> = EventInfo<dxChat> & {
164-
/**
165-
* @docid _ui_chat_AttachmentDownloadEvent.attachment
166-
* @type Attachment
167-
*/
168-
readonly attachment?: TAttachment;
163+
export type AttachmentDownloadEvent = EventInfo<dxChat> & {
164+
/** @docid _ui_chat_AttachmentDownloadEvent.attachment */
165+
readonly attachment?: Attachment;
169166
};
170167

171168
/**

packages/devextreme/ts/dx.all.d.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11150,14 +11150,13 @@ declare module DevExpress.ui {
1115011150
/**
1115111151
* [descr:_ui_chat_AttachmentDownloadEvent]
1115211152
*/
11153-
export type AttachmentDownloadEvent<
11154-
TAttachment extends Attachment = Attachment
11155-
> = DevExpress.common.core.events.EventInfo<dxChat> & {
11156-
/**
11157-
* [descr:_ui_chat_AttachmentDownloadEvent.attachment]
11158-
*/
11159-
readonly attachment?: TAttachment;
11160-
};
11153+
export type AttachmentDownloadEvent =
11154+
DevExpress.common.core.events.EventInfo<dxChat> & {
11155+
/**
11156+
* [descr:_ui_chat_AttachmentDownloadEvent.attachment]
11157+
*/
11158+
readonly attachment?: Attachment;
11159+
};
1116111160
/**
1116211161
* [descr:_ui_chat_DisposingEvent]
1116311162
*/

0 commit comments

Comments
 (0)