Skip to content

Commit f4e0cf2

Browse files
committed
Add return type
1 parent db17e49 commit f4e0cf2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function assertIsValidKeyGetter<R, K extends React.Key>(
2121
export function clampColumnWidth<R, SR>(
2222
width: number,
2323
{ minWidth, maxWidth }: CalculatedColumn<R, SR>
24-
) {
24+
): number {
2525
width = max(width, minWidth);
2626

2727
// ignore maxWidth if it less than minWidth
@@ -35,7 +35,7 @@ export function clampColumnWidth<R, SR>(
3535
export function getColumnWidthForMeasurement<R, SR>(
3636
width: string,
3737
{ minWidth, maxWidth }: CalculatedColumn<R, SR>
38-
) {
38+
): string {
3939
if (
4040
maxWidth != null &&
4141
// ignore maxWidth if it less than minWidth

0 commit comments

Comments
 (0)