From d461be92aba6b8b95d6ea7b49ae606d1001a102b Mon Sep 17 00:00:00 2001 From: ilyakhd <14272298+IlyaKhD@users.noreply.github.com> Date: Thu, 5 Dec 2024 00:59:54 +0200 Subject: [PATCH] Remove DxEvent WA --- packages/devextreme/js/common/core/events.d.ts | 4 +--- packages/devextreme/ts/dx.all.d.ts | 12 +++--------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/packages/devextreme/js/common/core/events.d.ts b/packages/devextreme/js/common/core/events.d.ts index 62161036184..4be12c64dc2 100644 --- a/packages/devextreme/js/common/core/events.d.ts +++ b/packages/devextreme/js/common/core/events.d.ts @@ -1,7 +1,7 @@ import { DxElement } from '../../core/element'; import { + DxEvent, EventObject as EventObjectInternal, - EventType, } from '../../events/events.types'; /** @@ -11,8 +11,6 @@ import { */ export type EventObject = EventObjectInternal; -type DxEvent = {} extends EventType ? (EventObject & TNativeEvent) : EventType; - /** * @docid * @public diff --git a/packages/devextreme/ts/dx.all.d.ts b/packages/devextreme/ts/dx.all.d.ts index f59744ebc84..b08db83e9f8 100644 --- a/packages/devextreme/ts/dx.all.d.ts +++ b/packages/devextreme/ts/dx.all.d.ts @@ -987,12 +987,6 @@ declare module DevExpress.common { export type Draggable = DevExpress.core.OmitInternal; export type DragHighlight = 'push' | 'indicate'; - /** - * @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution. - */ - type DxEvent = {} extends DevExpress.events.EventType - ? DevExpress.common.core.events.EventObject & TNativeEvent - : DevExpress.events.EventType; export type EditorStyle = 'outlined' | 'underlined' | 'filled'; /** * [descr:EmailRule] @@ -2746,7 +2740,7 @@ declare module DevExpress.common.core.events { /** * [descr:NativeEventInfo.event] */ - readonly event?: DxEvent; + readonly event?: DevExpress.events.DxEvent; }; /** * [descr:events.off(element)] @@ -2861,14 +2855,14 @@ declare module DevExpress.common.core.events { */ export function trigger( element: Element | Array, - event: string | DxEvent + event: string | DevExpress.events.DxEvent ): void; /** * [descr:events.trigger(element, event, extraParameters)] */ export function trigger( element: Element | Array, - event: string | DxEvent, + event: string | DevExpress.events.DxEvent, extraParameters: any ): void; }