From c96a7c8f276232406eb36020d9bfcb0cfafe04a4 Mon Sep 17 00:00:00 2001 From: ellevanova Date: Mon, 18 Sep 2023 23:56:32 +0400 Subject: [PATCH] added line --- src/utils/Block.ts | 14 +++++++------- src/utils/__tests__/register-components.test.ts | 0 src/utils/__tests__/validates.utils.test.ts | 0 3 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 src/utils/__tests__/register-components.test.ts delete mode 100644 src/utils/__tests__/validates.utils.test.ts diff --git a/src/utils/Block.ts b/src/utils/Block.ts index e5d6df3ce..86c872d97 100644 --- a/src/utils/Block.ts +++ b/src/utils/Block.ts @@ -13,14 +13,14 @@ class Block { }; public id = uuidv4(); - protected props: Object; + protected props: any; protected _element: HTMLElement | null = null; - protected _meta: { props: Object; }|null=null; + protected _meta: { props: any; }|null=null; private _eventBus: () => EventBus; private children: Record; protected refs: Record = {}; - constructor( propsWithChildren:Object = {}) { + constructor( propsWithChildren:any = {}) { const eventBus = new EventBus(); const {props, children} = this._getChildrenAndProps(propsWithChildren); @@ -38,7 +38,7 @@ class Block { eventBus.emit(Block.EVENTS.INIT); } - _getChildrenAndProps(childrenAndProps: Object) { + _getChildrenAndProps(childrenAndProps: any) { const props: Record = {}; const children: Record = {}; @@ -78,7 +78,7 @@ class Block { Object.values(this.children).forEach(child => child.dispatchComponentDidMount()); } - private _componentDidUpdate(oldProps:Object, newProps:Object) { + private _componentDidUpdate(oldProps:any, newProps:any) { const response = this.componentDidUpdate(oldProps, newProps); if(response) { @@ -86,12 +86,12 @@ class Block { } } - protected componentDidUpdate(oldProps:Object, newProps:Object) { + protected componentDidUpdate(oldProps:any, newProps:any) { // this.setProps(newProps); return isDeepEqual(oldProps, newProps); } - setProps = (nextProps:Object) => { + setProps = (nextProps:any) => { if (!nextProps) { return; } diff --git a/src/utils/__tests__/register-components.test.ts b/src/utils/__tests__/register-components.test.ts deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/utils/__tests__/validates.utils.test.ts b/src/utils/__tests__/validates.utils.test.ts deleted file mode 100644 index e69de29bb..000000000