Skip to content

Commit

Permalink
fix(TableProps): children with ExtendedNode<TableNode>
Browse files Browse the repository at this point in the history
  • Loading branch information
rwieruch committed Feb 23, 2023
1 parent 7f6bd3e commit 2150911
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .storybook/stories/Types/composed-table.story.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ export type HeaderProps = {
} & RestProps;

export type TableProps = {
data: Data,
theme?: Theme,
layout?: Layout,
sort?: Sort,
pagination?: Pagination,
select?: Select,
tree?: Tree,
onInit?: OnInitFunction,
children?: (nodes: TableNode[]) => React.ReactNode,
data: Data;
theme?: Theme;
layout?: Layout;
sort?: Sort;
pagination?: Pagination;
select?: Select;
tree?: Tree;
onInit?: OnInitFunction;
children?: (nodes: ExtendedNode<TableNode>[]) => React.ReactNode;
} & RestProps;
```

Expand Down
2 changes: 1 addition & 1 deletion src/types/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export type TableProps = {
select?: Select;
tree?: Tree;
onInit?: OnInitFunction;
children?: (nodes: TableNode[]) => React.ReactNode;
children?: (nodes: ExtendedNode<TableNode>[]) => React.ReactNode;
} & RestProps;

// external data
Expand Down

0 comments on commit 2150911

Please sign in to comment.