We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db17e49 commit f4e0cf2Copy full SHA for f4e0cf2
1 file changed
src/utils/index.ts
@@ -21,7 +21,7 @@ export function assertIsValidKeyGetter<R, K extends React.Key>(
21
export function clampColumnWidth<R, SR>(
22
width: number,
23
{ minWidth, maxWidth }: CalculatedColumn<R, SR>
24
-) {
+): number {
25
width = max(width, minWidth);
26
27
// ignore maxWidth if it less than minWidth
@@ -35,7 +35,7 @@ export function clampColumnWidth<R, SR>(
35
export function getColumnWidthForMeasurement<R, SR>(
36
width: string,
37
38
+): string {
39
if (
40
maxWidth != null &&
41
0 commit comments