Skip to content

Commit

Permalink
Remove DxEvent WA
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaKhD authored and VasilyStrelyaev committed Dec 5, 2024
1 parent 81dda5b commit d461be9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions packages/devextreme/js/common/core/events.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DxElement } from '../../core/element';
import {
DxEvent,
EventObject as EventObjectInternal,
EventType,
} from '../../events/events.types';

/**
Expand All @@ -11,8 +11,6 @@ import {
*/
export type EventObject = EventObjectInternal;

type DxEvent<TNativeEvent = Event> = {} extends EventType ? (EventObject & TNativeEvent) : EventType;

/**
* @docid
* @public
Expand Down
12 changes: 3 additions & 9 deletions packages/devextreme/ts/dx.all.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -987,12 +987,6 @@ declare module DevExpress.common {
export type Draggable =
DevExpress.core.OmitInternal<DevExpress.ui.dxDraggable>;
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<TNativeEvent = Event> = {} extends DevExpress.events.EventType
? DevExpress.common.core.events.EventObject & TNativeEvent
: DevExpress.events.EventType;
export type EditorStyle = 'outlined' | 'underlined' | 'filled';
/**
* [descr:EmailRule]
Expand Down Expand Up @@ -2746,7 +2740,7 @@ declare module DevExpress.common.core.events {
/**
* [descr:NativeEventInfo.event]
*/
readonly event?: DxEvent<TNativeEvent>;
readonly event?: DevExpress.events.DxEvent<TNativeEvent>;
};
/**
* [descr:events.off(element)]
Expand Down Expand Up @@ -2861,14 +2855,14 @@ declare module DevExpress.common.core.events {
*/
export function trigger(
element: Element | Array<Element>,
event: string | DxEvent
event: string | DevExpress.events.DxEvent
): void;
/**
* [descr:events.trigger(element, event, extraParameters)]
*/
export function trigger(
element: Element | Array<Element>,
event: string | DxEvent,
event: string | DevExpress.events.DxEvent,
extraParameters: any
): void;
}
Expand Down

0 comments on commit d461be9

Please sign in to comment.