Skip to content

Commit dd36a37

Browse files
d.ts - Remove / Unify Deprecated export type Options from devextreme/js/(ui|viz) (#32246)
Co-authored-by: Raushen
1 parent 779ba8a commit dd36a37

86 files changed

Lines changed: 15 additions & 295 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/devextreme/build/gulp/modules_metadata.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
{
4040
"name": "core/dom_component",
4141
"exports": {
42-
"default": { "path": "DOMComponent" },
43-
"Options": { "path": "DOMComponentOptions", "exportAs": "type" }
42+
"default": { "path": "DOMComponent" }
4443
}
4544
},
4645
{
@@ -513,12 +512,6 @@
513512
"default": { "path": "ui.dxScrollView", "isWidget": true }
514513
}
515514
},
516-
{
517-
"name": "ui/scroll_view/scrollable",
518-
"exports": {
519-
"Options": { "path": "ui.dxScrollableOptions", "exportAs": "type" }
520-
}
521-
},
522515
{
523516
"name": "ui/select_box",
524517
"exports": {

packages/devextreme/js/__internal/grids/new/grid_core/editing/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export interface Options {
2828

2929
confirmDelete?: boolean;
3030

31-
form?: dxForm.Options;
32-
popup?: dxPopup.Options;
31+
form?: dxForm.Properties;
32+
popup?: dxPopup.Properties;
3333

3434
texts?: Partial<EditingTexts>;
3535
};

packages/devextreme/js/__internal/grids/new/grid_core/editing/popup/component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export interface Props {
1919
customizeItem: NonNullable<FormProperties['customizeItem']>;
2020
items: NonNullable<FormProperties['items']>;
2121
formRef: RefObject<dxForm.default>;
22-
formProps: dxForm.Options;
23-
popupProps: dxPopup.Options;
22+
formProps: dxForm.Properties;
23+
popupProps: dxPopup.Properties;
2424
}
2525

2626
export class EditPopup extends Component<Props> {

packages/devextreme/js/__internal/ui/drop_down_editor/m_drop_down_editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import type {
2929
EventInfo,
3030
PointerInteractionEvent,
3131
} from '@js/events';
32-
import type { Options as Properties } from '@js/ui/drop_down_editor/ui.drop_down_editor';
32+
import type { Properties } from '@js/ui/drop_down_editor/ui.drop_down_editor';
3333
import type { Properties as PopupProperties } from '@js/ui/popup';
3434
import Popup from '@js/ui/popup/ui.popup';
3535
import errors from '@js/ui/widget/ui.errors';

packages/devextreme/js/core/dom_component.d.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,4 @@ export type ComponentClass<TProperties> = {
140140

141141
interface DOMComponentInstance extends DOMComponent<Properties> { }
142142

143-
type Properties = DOMComponentOptions<DOMComponentInstance>;
144-
145-
/** @deprecated use Properties instead */
146-
export type Options = Properties;
143+
export type Properties = DOMComponentOptions<DOMComponentInstance>;

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,6 @@ export type Properties<
303303
TKey = any,
304304
> = dxAccordionOptions<TItem, TKey>;
305305

306-
/** @deprecated use Properties instead */
307-
export type Options<
308-
TItem extends ItemLike = any,
309-
TKey = any,
310-
> = Properties<TItem, TKey>;
311-
312306
/// #DEBUG
313307
// eslint-disable-next-line import/first
314308
import { CheckedEvents } from '../core';

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,6 @@ export type Properties<
277277
TKey = any,
278278
> = dxActionSheetOptions<TItem, TKey>;
279279

280-
/** @deprecated use Properties instead */
281-
export type Options<
282-
TItem extends ItemLike<TKey> = any,
283-
TKey = any,
284-
> = Properties<TItem, TKey>;
285-
286280
/// #DEBUG
287281
// eslint-disable-next-line import/first
288282
import { CheckedEvents } from '../core';

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,6 @@ export default class dxAutocomplete extends dxDropDownList<dxAutocompleteOptions
237237
/** @public */
238238
export type Properties = dxAutocompleteOptions;
239239

240-
/** @deprecated use Properties instead */
241-
export type Options = dxAutocompleteOptions;
242-
243240
/// #DEBUG
244241
// eslint-disable-next-line import/first
245242
import { CheckedEvents } from '../core';

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,6 @@ export type Properties<
209209
TKey = any,
210210
> = dxBoxOptions<TItem, TKey>;
211211

212-
/** @deprecated use Properties instead */
213-
export type Options<
214-
TItem extends ItemLike<TKey> = any,
215-
TKey = any,
216-
> = Properties<TItem, TKey>;
217-
218212
/// #DEBUG
219213
// eslint-disable-next-line import/first
220214
import { CheckedEvents } from '../core';

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,6 @@ export default class dxButton extends Widget<dxButtonOptions> { }
166166
/** @public */
167167
export type Properties = dxButtonOptions;
168168

169-
/** @deprecated use Properties instead */
170-
export type Options = dxButtonOptions;
171-
172169
/// #DEBUG
173170
// eslint-disable-next-line import/first
174171
import { CheckedEvents } from '../core';

0 commit comments

Comments
 (0)