Skip to content

Commit

Permalink
Fix DataView TypeScript (#5822)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 22, 2024
1 parent 2d9b204 commit c111db4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/dataview/dataview.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,13 @@ export interface DataViewProps extends Omit<React.DetailedHTMLProps<React.HTMLAt
* @param {*} item - Current item.
* @param {'list' | 'grid' | (string & Record<string, unknown>)} layout - Current layout.
*/
itemTemplate?(item: any, layout: 'list' | 'grid' | (string & Record<string, unknown>)): React.ReactNode;
itemTemplate?(item: any, layout?: 'list' | 'grid' | (string & Record<string, unknown>)): 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<string, unknown>)} layout - Current layout.
*/
listTemplate?(items: any[], layout: 'list' | 'grid' | (string & Record<string, unknown>)): React.ReactNode[];
listTemplate?(items: any[], layout?: 'list' | 'grid' | (string & Record<string, unknown>)): React.ReactNode[] | undefined;
/**
* Used to get the child elements of the component.
* @readonly
Expand Down

0 comments on commit c111db4

Please sign in to comment.