Skip to content

Commit

Permalink
Change type of cell value as a step towards consolidation
Browse files Browse the repository at this point in the history
  • Loading branch information
wolmir committed Jul 18, 2022
1 parent 730d442 commit efe8706
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webview/src/experiments/util/buildDynamicColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
Column,
ValueWithChanges
} from 'dvc/src/experiments/webview/contract'
import { Value } from 'dvc/src/cli/reader'
import { formatFloat } from './numberFormatting'
import Tooltip, {
CELL_TOOLTIP_DELAY
Expand All @@ -20,7 +21,7 @@ import styles from '../components/table/styles.module.scss'
import { CopyButton } from '../../shared/components/copyButton/CopyButton'
import { OverflowHoverTooltip } from '../components/overflowHoverTooltip/OverflowHoverTooltip'

export type CellValue = undefined | string | number | ValueWithChanges
export type CellValue = Value | ValueWithChanges

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

0 comments on commit efe8706

Please sign in to comment.