Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/devextreme-react/src/core/contexts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface NestedOptionContextContent {
configNode: IConfigNode,
optionDescriptor: IOptionDescriptor,
childUpdateToken: symbol,
optionComponentKey: number
optionComponentKey: number,
) => void;
onNamedTemplateReady: (
template: ITemplate | null,
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-vue/src/core/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function initBaseComponent() {
$_getWatchMethod(): (
valueGetter: () => any,
valueChangeCallback: (value: any) => void,
options: { deep: boolean; skipImmediate: boolean }
options: { deep: boolean; skipImmediate: boolean },
) => any {
return (valueGetter, valueChangeCallback, options) => {
options = options || {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ export interface ValueContainerManagerConstructor {
create: (
logger: Logger,
stateSourceSign: RegExp,
valueContainer: MaybeValueContainer
valueContainer: MaybeValueContainer,
) => ValueContainerManager;
}

export type ValueContainerChangeCallback = (change: ValueContainerChange) => void;

export interface ValueContainerManager {
trackChanges: (
onChange: ValueContainerChangeCallback
onChange: ValueContainerChangeCallback,
) => void;
getValue: () => unknown;
}
Expand Down Expand Up @@ -97,14 +97,14 @@ export type DevToolsActions = 'DISPATCH' | 'JUMP_TO_STATE' | 'JUMP_TO_ACTION' |

export type DevToolsExternalActionCallback = (
action: DevToolsActions,
payload: ComponentState | null
payload: ComponentState | null,
) => void;

export interface DevToolsConnector {
connect: (options?: Record<string, unknown>) => void;
disconnect: () => void;
sendAction: (
action: StateChangeActionType, payload: StateChangePayload, state?: ComponentState
action: StateChangeActionType, payload: StateChangePayload, state?: ComponentState,
) => void;
onExternalAction: (callback: DevToolsExternalActionCallback) => void;
isConnected: boolean;
Expand All @@ -118,7 +118,7 @@ export type ReduxDevToolsInstance = {
subscribe:
(callback: (
// eslint-disable-next-line spellcheck/spell-checker
message: { type: ReduxDevToolsActions; payload: { type: string }; state?: string }
message: { type: ReduxDevToolsActions; payload: { type: string }; state?: string },
) => void) => void;
send: (action: { type: string; payload: unknown }, state: unknown) => void;
unsubscribe: () => void;
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/__internal/core/widget/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface ComponentProperties<TComponent> extends ComponentOptions<
onActionCreated?: (
component: TComponent,
action: (e) => void,
config: ActionConfig
config: ActionConfig,
) => () => unknown;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/__internal/core/widget/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const DEFAULT_FEEDBACK_SHOW_TIMEOUT = 30;

export type SupportedKeyHandler = (
e: DxEvent<KeyboardEvent>,
options?: KeyboardKeyDownEvent
options?: KeyboardKeyDownEvent,
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
) => void | boolean;
export type SupportedKeys = Record<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ type OptionsMethod<TOptions> = (() => TOptions)
& ((options: TOptions) => void)
& (
<TPropertyName extends string>(
optionName: TPropertyName
optionName: TPropertyName,
) => GridPropertyType<TOptions, TPropertyName>
) & (
<TPropertyName extends string>(
optionName: TPropertyName,
optionValue: GridPropertyType<TOptions, TPropertyName>
optionValue: GridPropertyType<TOptions, TPropertyName>,
) => void
);

Expand All @@ -47,7 +47,7 @@ type GridBaseType = GridBase<unknown, unknown> & Omit<Widget<InternalGridOptions
export type CreateComponent<TComponent extends Component<any>> = (
$container: dxElementWrapper,
component: new (...args) => TComponent,
options?: TComponent extends Component<infer TOptions> ? TOptions : never
options?: TComponent extends Component<infer TOptions> ? TOptions : never,
) => TComponent;

export interface InternalGrid extends GridBaseType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export type Column = Pick<Required<ColumnBase>, InheritedColumnProps> & {
headerFilter?: HeaderFilterColumnOptions;

setFieldValue: (
this: Column, newData: DeepPartial<DataObject>, value: unknown, currentRowData: DataObject
this: Column, newData: DeepPartial<DataObject>, value: unknown, currentRowData: DataObject,
) => (void | Promise<void>);
defaultSetFieldValue: Column['setFieldValue'];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { defaultColumnProperties, defaultColumnPropertiesByDataType } from './op
import type { Column, ColumnFromDataOptions, ColumnsConfigurationFromData } from './types';

type TemplateNormalizationFunc = <T>(
template: Template<T> | undefined
template: Template<T> | undefined,
) => ComponentType<T> | undefined;

export function normalizeColumn(
Expand Down
4 changes: 2 additions & 2 deletions packages/devextreme/js/__internal/scheduler/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export interface ViewDataProviderType {
rowIndex: number,
columnIndex: number,
isAllDay?: boolean,
rtlEnabled?: boolean
rtlEnabled?: boolean,
) => ViewCellData;
getCellCount: (config: CountGenerationConfig) => number;
getRowCount: (config: CountGenerationConfig) => number;
Expand All @@ -236,7 +236,7 @@ export interface ViewDataProviderType {
getVisibleDayDuration: (
startDayHour: number,
endDayHour: number,
hoursInterval: number
hoursInterval: number,
) => number;
getLastViewDateByEndDayHour: (endDayHour: number) => Date;
getIntervalDuration: (intervalCount: number) => number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {
} from './types';

export function getAbstractSizeByViewOrientation(
size: Geometry, viewOrientation: Orientation
size: Geometry, viewOrientation: Orientation,
): X & Y;
export function getAbstractSizeByViewOrientation(
size: RealSize, viewOrientation: Orientation,
Expand All @@ -31,7 +31,7 @@ export function getAbstractSizeByViewOrientation(
}

export function getRealSizeByViewOrientation(
size: X & Y, viewOrientation: Orientation
size: X & Y, viewOrientation: Orientation,
): Geometry;
export function getRealSizeByViewOrientation(
size: AbstractSize, viewOrientation: Orientation,
Expand Down
6 changes: 3 additions & 3 deletions packages/devextreme/js/__internal/ui/collection/item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface Watcher {
const forcibleWatcher = <T>(
watchMethod: (
fn: () => void,
callback: (value: T) => void
callback: (value: T) => void,
) => () => void,
fn: () => T,
callback: (value: T, oldValue: T) => void,
Expand All @@ -45,11 +45,11 @@ const forcibleWatcher = <T>(
export interface ItemExtraOption<TProperties> {
owner: Record<string, unknown>;
fieldGetter: <TT>(
field: keyof TProperties
field: keyof TProperties,
) => (rawData: TProperties | undefined) => TT;
watchMethod: <TT>() => (
fn: () => void,
callback: (value: TT) => void
callback: (value: TT) => void,
) => () => void;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface DateViewRollerProperties extends ScrollableProperties {
onEnd?: ((e: ScrollEventInfo<DateViewRoller>) => void) | null;

onSelectedIndexChanged?: ((
e: { component: DateViewRoller; previousValue: number; value: number }
e: { component: DateViewRoller; previousValue: number; value: number },
) => void) | null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface ConvertToRenderFieldItemOptions {
createComponentCallback: ((
$editor: dxElementWrapper,
component: string,
editorOptions: EditorProperties
editorOptions: EditorProperties,
) => Editor);

item: Required<SimpleItem>;
Expand Down Expand Up @@ -99,7 +99,7 @@ export interface FieldItemOptions {
createComponentCallback: ((
$editor: dxElementWrapper,
component: string,
editorOptions: EditorProperties
editorOptions: EditorProperties,
) => Editor);

labelOptions: LabelOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface Delta {
compose: (other: Delta) => Delta;
reduce: <T>(
callback: (accumulator: T, operation: DeltaOperation, index: number) => T,
initialValue?: T
initialValue?: T,
) => T;
}

Expand Down Expand Up @@ -111,7 +111,7 @@ export interface QuillInstance {
text: string,
formatOrSource?: string,
value?: unknown,
source?: string
source?: string,
) => Delta;
setContents: (delta: Delta, source?: string) => Delta;
setText: (text: string, source?: string) => Delta;
Expand All @@ -123,14 +123,14 @@ export interface QuillInstance {
length: number,
formats: Record<string, unknown> | string,
value?: unknown,
source?: string
source?: string,
) => Delta;
formatText: (
index: number,
length: number,
formats: Record<string, unknown> | string,
value?: unknown,
source?: string
source?: string,
) => Delta;
getFormat: (range?: RangeStatic | number, length?: number) => Record<string, unknown>;
removeFormat: {
Expand Down Expand Up @@ -188,7 +188,7 @@ export interface QuillStatic {
import: (path: string) => unknown;
register: (
modules: Record<string, unknown> | string | BlotConstructor | AttributorConstructor,
overwrite?: boolean
overwrite?: boolean,
) => void;
find: (node: Node, bubble?: boolean) => unknown;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const aiCommandNames = {
export type AICommandNameEnum = typeof aiCommandNames[keyof typeof aiCommandNames];

const getLocalizedCommandOption = (command: AICommandNameExtended): (
option: AIChangeStyleOption | AIChangeToneOption | AITranslateOption
option: AIChangeStyleOption | AIChangeToneOption | AITranslateOption,
) => string => (
option: AIChangeStyleOption | AIChangeToneOption | AITranslateOption,
): string => localizationMessage.format(`dxHtmlEditor-aiCommand${capitalize(command)}${capitalize(option)}`);
Expand Down
4 changes: 2 additions & 2 deletions packages/devextreme/js/__internal/ui/map/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,11 @@ class Map extends Widget<MapProperties> {
): Promise<void>;
_removeFunction(
optionName: 'routes',
removingValue: MapProperties['routes' ] | number,
removingValue: MapProperties['routes'] | number,
): Promise<void>;
_removeFunction(
optionName: 'markers' | 'routes',
removingValue: MapProperties['markers'] | MapProperties['routes' ] | number,
removingValue: MapProperties['markers'] | MapProperties['routes'] | number,
): Promise<void> {
const { [optionName]: optionValue = [] } = this.option();
const removingValues = wrapToArray(removingValue);
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/__internal/ui/overlay/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export interface OverlayActions<
onHidden?: OverlayProperties['onHidden'];
onPositioned?: (e: Partial<PositioningEvent<TPosition>>) => void;
onVisualPositionChanged?: (
e: Partial<VisualPositionChangedEvent<TPosition>>
e: Partial<VisualPositionChangedEvent<TPosition>>,
) => void;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/__internal/ui/selection/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export type SelectionOptions<
getLoadOptions?: (
loadItemIndex: number,
focusedItemIndex: number,
shiftItemIndex?: number
shiftItemIndex?: number,
) => LoadOptions;
addedItemKeys: TKey[];
removedItemKeys: TKey[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class RollingStock {

private readonly shiftFunction: (
bBox: BoundingRect,
shiftLength: number
shiftLength: number,
) => { x: number; y: number };

private readonly initialPosition: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/core/utils/window.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export declare function hasProperty(property: string): boolean;
export declare function setWindow(
newWindowObject: Window | Record<string, unknown>,

hasWindow?: boolean
hasWindow?: boolean,
): void;
Loading
Loading