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