From c111db48b9d9d14d7e354c9826efc0469596ba85 Mon Sep 17 00:00:00 2001 From: Melloware Date: Mon, 22 Jan 2024 11:15:45 -0500 Subject: [PATCH] Fix DataView TypeScript (#5822) --- components/lib/dataview/dataview.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/dataview/dataview.d.ts b/components/lib/dataview/dataview.d.ts index 7f26afcae6..8a32a3b2fd 100755 --- a/components/lib/dataview/dataview.d.ts +++ b/components/lib/dataview/dataview.d.ts @@ -336,13 +336,13 @@ export interface DataViewProps extends Omit)} layout - Current layout. */ - itemTemplate?(item: any, layout: 'list' | 'grid' | (string & Record)): React.ReactNode; + itemTemplate?(item: any, layout?: 'list' | 'grid' | (string & Record)): React.ReactNode | undefined; /** * Function that gets the options along with the layout mode and returns the content. * @param {*} item - Current item. * @param {'list' | 'grid' | (string & Record)} layout - Current layout. */ - listTemplate?(items: any[], layout: 'list' | 'grid' | (string & Record)): React.ReactNode[]; + listTemplate?(items: any[], layout?: 'list' | 'grid' | (string & Record)): React.ReactNode[] | undefined; /** * Used to get the child elements of the component. * @readonly