Skip to content

Commit

Permalink
fix TS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
16adianay committed Dec 22, 2023
1 parent a09ad5f commit 1a0203c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Vue/src/components/HomeContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit 1a0203c

Please sign in to comment.