From 1a0203cf7abf8ce5620fa46a239cbc3fc66f2b5b Mon Sep 17 00:00:00 2001 From: Diana Gromova <16adianay@gmail.com> Date: Fri, 22 Dec 2023 20:35:21 +0400 Subject: [PATCH] fix TS issues --- Vue/src/components/HomeContent.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Vue/src/components/HomeContent.vue b/Vue/src/components/HomeContent.vue index 7117250..6bf2dd3 100644 --- a/Vue/src/components/HomeContent.vue +++ b/Vue/src/components/HomeContent.vue @@ -55,9 +55,9 @@ import DxDataGrid, { DxStringLengthRule, DxToolbar, DxItem, - DxDataGridTypes } from 'devextreme-vue/data-grid'; import type dxDataGrid from 'devextreme/ui/data_grid'; +import { type DxDataGridTypes } from 'devextreme-vue/data-grid'; import notify from 'devextreme/ui/notify'; const pattern = /^\(\d{3}\) \d{3}-\d{4}$/i; @@ -85,6 +85,7 @@ watch(changes, () => { nextTick (() => { const dataGridInstance = dataGridRef.value?.instance! as dxDataGrid; dataGridInstance?.repaint(); + // @ts-expect-error - getController is a private method dataGridInstance?.getController('validating').validate(true).then((result: Boolean) => { const message = result ? 'Validation is passed' : 'Validation is failed'; const type = result ? 'success' : 'error';