Skip to content

Commit 2662d2d

Browse files
Button: refactor r1 generated code (#30146)
1 parent 20eb897 commit 2662d2d

File tree

8 files changed

+277
-315
lines changed

8 files changed

+277
-315
lines changed

packages/devextreme/js/__internal/core/r1/component_wrapper.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { extend } from '@js/core/utils/extend';
1212
import {
1313
isDefined, isRenderer, isString,
1414
} from '@js/core/utils/type';
15+
import type { ActionConfig } from '@ts/core/widget/component';
1516
import type { Component, RefObject, VNode } from 'inferno';
1617
import {
1718
createRef,
@@ -264,7 +265,7 @@ export class ComponentWrapper extends DOMComponent<ComponentWrapperProps> {
264265
return this._elementAttr;
265266
}
266267

267-
_getAdditionalActionConfigs(): Record<string, Record<string, unknown>> {
268+
_getAdditionalActionConfigs(): Record<string, ActionConfig> {
268269
return {
269270
onContentReady: {
270271
excludeValidators: ['disabled', 'readOnly'],
@@ -367,11 +368,11 @@ export class ComponentWrapper extends DOMComponent<ComponentWrapperProps> {
367368
});
368369
}
369370

370-
_getActionConfigs(): Record<string, Record<string, unknown>> {
371+
_getActionConfigs(): Record<string, ActionConfig> {
371372
return {};
372373
}
373374

374-
_getActionConfigsFull(): Record<string, Record<string, unknown>> {
375+
_getActionConfigsFull(): Record<string, ActionConfig> {
375376
return {
376377
...this._getActionConfigs(),
377378
...this._getAdditionalActionConfigs(),

0 commit comments

Comments
 (0)