File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 65
65
"@testing-library/jest-dom" : " ^5.16.5" ,
66
66
"@testing-library/react" : " ^12.1.5" ,
67
67
"@types/enzyme" : " ^3.10.5" ,
68
+ "@types/react" : " ^18.0.28" ,
68
69
"@types/jest" : " ^29.5.0" ,
69
- "@types/react" : " ^17.0.35" ,
70
70
"@types/react-dom" : " ^18.0.5" ,
71
71
"@types/responselike" : " ^1.0.0" ,
72
72
"@types/styled-components" : " ^5.1.32" ,
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export default function useCellRender<RecordType>(
40
40
? dataIndex
41
41
: [ dataIndex ] ;
42
42
43
- const value : Record < string , unknown > | React . ReactNode = getValue ( record , path ) ;
43
+ const value : React . ReactNode = getValue ( record , path ) ;
44
44
45
45
// Customize render node
46
46
let returnChildNode = value ;
Original file line number Diff line number Diff line change @@ -16,16 +16,16 @@ interface GetColumnKeyColumn {
16
16
17
17
export function getColumnsKey ( columns : readonly GetColumnKeyColumn [ ] ) {
18
18
const columnKeys : React . Key [ ] = [ ] ;
19
- const keys : Record < React . Key , boolean > = { } ;
19
+ const keys : Record < PropertyKey , boolean > = { } ;
20
20
21
21
columns . forEach ( column => {
22
22
const { key, dataIndex } = column || { } ;
23
23
24
24
let mergedKey = key || toArray ( dataIndex ) . join ( '-' ) || INTERNAL_KEY_PREFIX ;
25
- while ( keys [ mergedKey ] ) {
25
+ while ( keys [ mergedKey as string ] ) {
26
26
mergedKey = `${ mergedKey } _next` ;
27
27
}
28
- keys [ mergedKey ] = true ;
28
+ keys [ mergedKey as string ] = true ;
29
29
30
30
columnKeys . push ( mergedKey ) ;
31
31
} ) ;
You can’t perform that action at this time.
0 commit comments