Skip to content

Commit 0119485

Browse files
Move js to ts (#30605) (#31604)
Co-authored-by: Denis Malykh <[email protected]>
1 parent a3d2496 commit 0119485

File tree

10 files changed

+1464
-1405
lines changed

10 files changed

+1464
-1405
lines changed

packages/devextreme/js/__internal/common/core/animation/m_position.ts

Lines changed: 447 additions & 0 deletions
Large diffs are not rendered by default.

packages/devextreme/js/__internal/common/core/animation/presets/m_presets.ts

Lines changed: 418 additions & 0 deletions
Large diffs are not rendered by default.

packages/devextreme/js/__internal/core/m_dom_adapter.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export interface DomAdapter {
3131
getRootNode: (element: HTMLElement) => Document | DocumentFragment;
3232
getAttribute: (element, name) => any;
3333
setAttribute: (element, name, value) => void;
34+
createAttribute: (text: string, context?: Document) => Attr;
3435
removeAttribute: (element, name) => void;
3536
isElementNode: (element: any) => boolean;
3637
createElement: (tagName: string, context?: Document) => HTMLElement;
@@ -88,8 +89,10 @@ const nativeDOMAdapterStrategy: DomAdapter = {
8889
return context.createTextNode(text);
8990
},
9091

91-
createAttribute(text, context) {
92+
createAttribute(text: string, context?: Document) {
93+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
9294
context = context || this._document;
95+
// @ts-expect-error
9396
return context.createAttribute(text);
9497
},
9598

0 commit comments

Comments
 (0)