From efa3ee6604e78fb91dff4fc2d687cb445f18b9e0 Mon Sep 17 00:00:00 2001 From: melloware Date: Tue, 27 Dec 2022 09:26:28 -0500 Subject: [PATCH] Fix: #2523 DataTable/TreeTable: stricter generically typed API --- components/lib/datatable/datatable.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/datatable/datatable.d.ts b/components/lib/datatable/datatable.d.ts index 1adc7c2459..5b9be6584a 100644 --- a/components/lib/datatable/datatable.d.ts +++ b/components/lib/datatable/datatable.d.ts @@ -292,7 +292,7 @@ export interface DataTableProps extends Omit first?: number; footer?: DataTableFooterTemplateType; footerColumnGroup?: React.ReactNode; - frozenValue?: DataTableRowData[]; + frozenValue?: DataTableRowDataArray; frozenWidth?: string; globalFilter?: DataTableGlobalFilterType; globalFilterFields?: string[]; @@ -387,7 +387,7 @@ export interface DataTableProps extends Omit onSort?(e: DataTablePFSEvent): void; onStateRestore?(state: object): void; onStateSave?(state: object): void; - onValueChange?(value: any[]): void; + onValueChange?(value: DataTableRowDataArray): void; rowClassName?(data: DataTableRowData, options: DataTableRowClassNameOptions): object | string; rowEditValidator?(data: DataTableRowData, options: DataTableRowEditValidatorOptions): boolean; rowExpansionTemplate?(data: DataTableRowData, options: DataTableRowExpansionTemplate): React.ReactNode;