Skip to content

Commit 2150911

Browse files
committed
fix(TableProps): children with ExtendedNode<TableNode>
1 parent 7f6bd3e commit 2150911

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.storybook/stories/Types/composed-table.story.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ export type HeaderProps = {
6868
} & RestProps;
6969

7070
export type TableProps = {
71-
data: Data,
72-
theme?: Theme,
73-
layout?: Layout,
74-
sort?: Sort,
75-
pagination?: Pagination,
76-
select?: Select,
77-
tree?: Tree,
78-
onInit?: OnInitFunction,
79-
children?: (nodes: TableNode[]) => React.ReactNode,
71+
data: Data;
72+
theme?: Theme;
73+
layout?: Layout;
74+
sort?: Sort;
75+
pagination?: Pagination;
76+
select?: Select;
77+
tree?: Tree;
78+
onInit?: OnInitFunction;
79+
children?: (nodes: ExtendedNode<TableNode>[]) => React.ReactNode;
8080
} & RestProps;
8181
```
8282

src/types/table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export type TableProps = {
7474
select?: Select;
7575
tree?: Tree;
7676
onInit?: OnInitFunction;
77-
children?: (nodes: TableNode[]) => React.ReactNode;
77+
children?: (nodes: ExtendedNode<TableNode>[]) => React.ReactNode;
7878
} & RestProps;
7979

8080
// external data

0 commit comments

Comments
 (0)