Skip to content

Commit

Permalink
Remove unnecessary undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
alexslavr committed Nov 4, 2024
1 parent d9bb768 commit 7324281
Show file tree
Hide file tree
Showing 14 changed files with 69 additions and 87 deletions.
2 changes: 1 addition & 1 deletion packages/devextreme/js/common/charts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ export interface SeriesPoint {
* @default 30
* @propertyOf dxChartSeriesTypes.LineSeries,dxChartSeriesTypes.StackedLineSeries,dxChartSeriesTypes.FullStackedLineSeries,dxChartSeriesTypes.StackedSplineSeries,dxChartSeriesTypes.FullStackedSplineSeries,dxChartSeriesTypes.SplineSeries,dxChartSeriesTypes.StepLineSeries,dxChartSeriesTypes.AreaSeries,dxChartSeriesTypes.StackedAreaSeries,dxChartSeriesTypes.FullStackedAreaSeries,dxChartSeriesTypes.StackedSplineAreaSeries,dxChartSeriesTypes.FullStackedSplineAreaSeries,dxChartSeriesTypes.SplineAreaSeries,dxChartSeriesTypes.StepAreaSeries,dxChartSeriesTypes.RangeAreaSeries,dxChartSeriesTypes.ScatterSeries
*/
height?: number | undefined | {
height?: number | {
/**
* @docid dxChartSeriesTypes.CommonSeries.point.image.height.rangeMaxPoint
* @default undefined
Expand Down
4 changes: 2 additions & 2 deletions packages/devextreme/js/common/grids.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export interface ColumnBase<TRowData = any> {
* @default undefined
* @public
*/
filterOperations?: Array<FilterOperation | string> | undefined;
filterOperations?: Array<FilterOperation | string>;
/**
* @docid GridBaseColumn.filterType
* @default "include"
Expand All @@ -281,7 +281,7 @@ export interface ColumnBase<TRowData = any> {
* @fires GridBaseOptions.onOptionChanged
* @public
*/
filterValues?: Array<any> | undefined;
filterValues?: Array<any>;
/**
* @docid GridBaseColumn.fixed
* @default false
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/ui/chat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export interface dxChatOptions extends WidgetOptions<dxChat> {
* @default undefined
* @public
*/
alerts?: Array<Alert> | undefined;
alerts?: Array<Alert>;
/**
* @docid
* @default []
Expand Down
12 changes: 6 additions & 6 deletions packages/devextreme/js/ui/diagram.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export interface dxDiagramOptions extends WidgetOptions<dxDiagram> {
* @docid
* @default undefined
*/
commands?: Array<CustomCommand | Command> | undefined;
commands?: Array<CustomCommand | Command>;
/**
* @docid
* @default true
Expand Down Expand Up @@ -1004,7 +1004,7 @@ export interface dxDiagramOptions extends WidgetOptions<dxDiagram> {
* @docid
* @default undefined
*/
commands?: Array<CustomCommand | Command> | undefined;
commands?: Array<CustomCommand | Command>;
/**
* @docid
* @default false
Expand All @@ -1021,7 +1021,7 @@ export interface dxDiagramOptions extends WidgetOptions<dxDiagram> {
* @docid
* @default undefined
*/
commands?: Array<CustomCommand | Command> | undefined;
commands?: Array<CustomCommand | Command>;
/**
* @docid
* @default true
Expand All @@ -1038,7 +1038,7 @@ export interface dxDiagramOptions extends WidgetOptions<dxDiagram> {
* @docid
* @default undefined
*/
commands?: Array<CustomCommand | Command> | undefined;
commands?: Array<CustomCommand | Command>;
/**
* @docid
* @default true
Expand Down Expand Up @@ -1076,7 +1076,7 @@ export interface dxDiagramOptions extends WidgetOptions<dxDiagram> {
* @docid
*/
title?: string;
}> | Array<ShapeCategory> | undefined;
}> | Array<ShapeCategory>;
/**
* @docid
* @default 3
Expand Down Expand Up @@ -1120,7 +1120,7 @@ export interface dxDiagramOptions extends WidgetOptions<dxDiagram> {
* @docid
* @default undefined
*/
items?: Array<number> | undefined;
items?: Array<number>;
/**
* @docid
* @default undefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export interface dxDropDownEditorOptions<TComponent> extends Omit<dxTextBoxOptio
* @default undefined
* @public
*/
buttons?: Array<DropDownPredefinedButton | TextEditorButton> | undefined;
buttons?: Array<DropDownPredefinedButton | TextEditorButton>;
/**
* @docid
* @default true
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/ui/filter_builder.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export interface dxFilterBuilderField {
* @default undefined
* @public
*/
filterOperations?: Array<FilterBuilderOperation | string> | undefined;
filterOperations?: Array<FilterBuilderOperation | string>;
/**
* @docid
* @default ""
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/ui/gantt.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ export interface dxGanttOptions extends WidgetOptions<dxGantt> {
* @default undefined
* @public
*/
stripLines?: Array<dxGanttStripLine> | undefined;
stripLines?: Array<dxGanttStripLine>;
/**
* @docid
* @type_function_return string|Element|jQuery
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/ui/number_box.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export interface dxNumberBoxOptions extends dxTextEditorOptions<dxNumberBox> {
* @default undefined
* @public
*/
buttons?: Array<NumberBoxPredefinedButton | TextEditorButton> | undefined;
buttons?: Array<NumberBoxPredefinedButton | TextEditorButton>;
/**
* @docid
* @default ""
Expand Down
8 changes: 4 additions & 4 deletions packages/devextreme/js/viz/chart.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ export type ArgumentAxis = CommonAxisSettings & {
* @notUsedInTheme
* @public
*/
breaks?: Array<ScaleBreak> | undefined;
breaks?: Array<ScaleBreak>;
/**
* @docid dxChartOptions.argumentAxis.categories
* @public
Expand Down Expand Up @@ -1399,7 +1399,7 @@ export type ArgumentAxis = CommonAxisSettings & {
* @default undefined
* @public
*/
holidays?: Array<Date | string> | Array<number> | undefined;
holidays?: Array<Date | string> | Array<number>;
/**
* @docid dxChartOptions.argumentAxis.hoverMode
* @default 'none'
Expand Down Expand Up @@ -1475,7 +1475,7 @@ export type ArgumentAxis = CommonAxisSettings & {
* @default undefined
* @public
*/
singleWorkdays?: Array<Date | string> | Array<number> | undefined;
singleWorkdays?: Array<Date | string> | Array<number>;
/**
* @docid dxChartOptions.argumentAxis.strips
* @type Array<Object>
Expand Down Expand Up @@ -2468,7 +2468,7 @@ export type ValueAxis = CommonAxisSettings & {
* @notUsedInTheme
* @public
*/
breaks?: Array<ScaleBreak> | undefined;
breaks?: Array<ScaleBreak>;
/**
* @docid dxChartOptions.valueAxis.categories
* @public
Expand Down
6 changes: 3 additions & 3 deletions packages/devextreme/js/viz/gauges/base_gauge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export interface BaseGaugeOptions<TComponent> extends BaseWidgetOptions<TCompone
* @fires BaseWidgetOptions.onOptionChanged
* @public
*/
subvalues?: Array<number> | undefined;
subvalues?: Array<number>;
/**
* @docid
* @type object
Expand Down Expand Up @@ -234,14 +234,14 @@ export interface BaseGaugeScale {
* @notUsedInTheme
* @public
*/
customMinorTicks?: Array<number> | undefined;
customMinorTicks?: Array<number>;
/**
* @docid BaseGaugeOptions.scale.customTicks
* @default undefined
* @notUsedInTheme
* @public
*/
customTicks?: Array<number> | undefined;
customTicks?: Array<number>;
/**
* @docid BaseGaugeOptions.scale.endValue
* @default 100
Expand Down
6 changes: 3 additions & 3 deletions packages/devextreme/js/viz/range_selector.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ export interface dxRangeSelectorOptions extends BaseWidgetOptions<dxRangeSelecto
* @default undefined
* @notUsedInTheme
*/
breaks?: Array<ScaleBreak> | undefined;
breaks?: Array<ScaleBreak>;
/**
* @docid
*/
Expand All @@ -479,7 +479,7 @@ export interface dxRangeSelectorOptions extends BaseWidgetOptions<dxRangeSelecto
* @docid
* @default undefined
*/
holidays?: Array<Date | string> | Array<number> | undefined;
holidays?: Array<Date | string> | Array<number>;
/**
* @docid
*/
Expand Down Expand Up @@ -633,7 +633,7 @@ export interface dxRangeSelectorOptions extends BaseWidgetOptions<dxRangeSelecto
* @docid
* @default undefined
*/
singleWorkdays?: Array<Date | string> | Array<number> | undefined;
singleWorkdays?: Array<Date | string> | Array<number>;
/**
* @docid
* @default undefined
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/viz/tree_map.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export interface dxTreeMapOptions extends BaseWidgetOptions<dxTreeMap> {
* @docid
* @default undefined
*/
range?: Array<number> | undefined;
range?: Array<number>;
/**
* @docid
* @default undefined
Expand Down
4 changes: 2 additions & 2 deletions packages/devextreme/js/viz/vector_map.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export interface dxVectorMapOptions extends BaseWidgetOptions<dxVectorMap> {
* @notUsedInTheme
* @public
*/
bounds?: Array<number> | undefined;
bounds?: Array<number>;
/**
* @docid
* @default [0, 0]
Expand Down Expand Up @@ -756,7 +756,7 @@ export interface dxVectorMapCommonAnnotationConfig extends BaseWidgetAnnotationC
* @default undefined
* @public
*/
coordinates?: Array<number> | undefined;
coordinates?: Array<number>;
/**
* @docid
* @type_function_return object
Expand Down
Loading

0 comments on commit 7324281

Please sign in to comment.