import { ReadonlyDeep , } from "type-fest" ; import { ControlValues , } from "uvc-control" ; export default function flattenControlValues ( valueObject ) { const values = Object . values ( valueObject ) ; const firstValue = values [ 0 ] ; const value = values . length === 1 && typeof firstValue === "number" ? firstValue : values ; return value ; }