From 8865f7bbb21260b459f8894da67241bbb4e127e5 Mon Sep 17 00:00:00 2001 From: Mikhail Preyskurantov <5574159+mpreyskurantov@users.noreply.github.com> Date: Fri, 30 Aug 2024 17:58:28 +0300 Subject: [PATCH] clean up --- packages/devextreme/js/events/index.d.ts | 4 ++-- packages/devextreme/js/ui/menu.d.ts | 2 +- packages/devextreme/js/ui/toolbar.js | 1 - packages/devextreme/ts/dx.all.d.ts | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/devextreme/js/events/index.d.ts b/packages/devextreme/js/events/index.d.ts index 7ed6b3618a91..999a80e69b94 100644 --- a/packages/devextreme/js/events/index.d.ts +++ b/packages/devextreme/js/events/index.d.ts @@ -113,13 +113,13 @@ export interface Cancelable { * @docid * @public */ -export interface AsyncCancelable { +export type AsyncCancelable = { /** * @docid * @type boolean|Promise */ cancel: boolean | PromiseLike; -} +}; /** @deprecated EventObject */ export type dxEvent = EventObject; diff --git a/packages/devextreme/js/ui/menu.d.ts b/packages/devextreme/js/ui/menu.d.ts index 7b88337ca069..259bfd71bee0 100644 --- a/packages/devextreme/js/ui/menu.d.ts +++ b/packages/devextreme/js/ui/menu.d.ts @@ -406,7 +406,7 @@ export type Options = Properties; // eslint-disable-next-line import/first import { CheckedEvents } from '../core'; -type FilterOutHidden = Omit; +type FilterOutHidden = Omit; type EventsIntegrityCheckingHelper = CheckedEvents, Required, 'onSubmenuHidden' | 'onSubmenuHiding' | 'onSubmenuShowing' | 'onSubmenuShown'>; diff --git a/packages/devextreme/js/ui/toolbar.js b/packages/devextreme/js/ui/toolbar.js index 0a3e31f70e7d..e96cebec5f62 100644 --- a/packages/devextreme/js/ui/toolbar.js +++ b/packages/devextreme/js/ui/toolbar.js @@ -68,7 +68,6 @@ export default Toolbar; * @hidden */ - /** * @name dxToolbarOptions.onSelectionChanged * @action diff --git a/packages/devextreme/ts/dx.all.d.ts b/packages/devextreme/ts/dx.all.d.ts index e26512edea2a..b277e626a6e3 100644 --- a/packages/devextreme/ts/dx.all.d.ts +++ b/packages/devextreme/ts/dx.all.d.ts @@ -6703,12 +6703,12 @@ declare module DevExpress.events { /** * [descr:AsyncCancelable] */ - export interface AsyncCancelable { + export type AsyncCancelable = { /** * [descr:AsyncCancelable.cancel] */ cancel: boolean | PromiseLike; - } + }; /** * [descr:Cancelable] */