Skip to content

Commit bfd6dd9

Browse files
authored
Change type of cell value as a step towards consolidation (#2054)
1 parent 730d442 commit bfd6dd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webview/src/experiments/util/buildDynamicColumns.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
Column,
1313
ValueWithChanges
1414
} from 'dvc/src/experiments/webview/contract'
15+
import { Value } from 'dvc/src/cli/reader'
1516
import { formatFloat } from './numberFormatting'
1617
import Tooltip, {
1718
CELL_TOOLTIP_DELAY
@@ -20,7 +21,7 @@ import styles from '../components/table/styles.module.scss'
2021
import { CopyButton } from '../../shared/components/copyButton/CopyButton'
2122
import { OverflowHoverTooltip } from '../components/overflowHoverTooltip/OverflowHoverTooltip'
2223

23-
export type CellValue = undefined | string | number | ValueWithChanges
24+
export type CellValue = Value | ValueWithChanges
2425

2526
export const isValueWithChanges = (raw: CellValue): raw is ValueWithChanges =>
2627
typeof (raw as ValueWithChanges)?.changes === 'boolean'

0 commit comments

Comments
 (0)