Skip to content

Function: mapLegacyStatus()

ts
function mapLegacyStatus(legacy: "verified" | "partial" | "broken" | "untested" | undefined): SupportStatus | undefined;

Map a legacy DeviceSupport.status value to a stored SupportStatus. Returns undefined for 'untested' (= absent in the new shape).

Parameters

ParameterType
legacy"verified" | "partial" | "broken" | "untested" | undefined

Returns

SupportStatus | undefined