File tree 3 files changed +11
-6
lines changed
3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @zenml-io/react-component-library " : patch
3
+ ---
4
+
5
+ adjust types
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ type DummyData = {
11
11
age : number ;
12
12
} ;
13
13
14
- const cols : ColumnDef < DummyData , unknown > [ ] = [
14
+ const cols : ColumnDef < DummyData > [ ] = [
15
15
{
16
16
id : "id" ,
17
17
header : "ID" ,
@@ -134,7 +134,7 @@ const CustomizedDataTable = () => {
134
134
) ;
135
135
} ;
136
136
137
- const colsCustomized : ColumnDef < DummyData , unknown > [ ] = [
137
+ const colsCustomized : ColumnDef < DummyData > [ ] = [
138
138
{
139
139
id : "select" ,
140
140
accessorKey : "select" ,
Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ function SortingArrow({ direction }: Props) {
15
15
return < Comp className = "h-4 w-4 shrink-0" /> ;
16
16
}
17
17
18
- interface HeaderProps < TData extends RowData > {
19
- header : Header < TData , unknown > ;
18
+ interface HeaderProps < TData extends RowData , TValue > {
19
+ header : Header < TData , TValue > ;
20
20
}
21
21
22
- export function SortableHeader < TData extends RowData > ( {
22
+ export function SortableHeader < TData extends RowData , TValue > ( {
23
23
header,
24
24
children
25
- } : PropsWithChildren < HeaderProps < TData > > ) {
25
+ } : PropsWithChildren < HeaderProps < TData , TValue > > ) {
26
26
return (
27
27
< button
28
28
className = { `${
You can’t perform that action at this time.
0 commit comments