Skip to content

@mega-yfue/eufy-sdk / enumLabels

Function: enumLabels()

ts
function enumLabels(enumObj): Record<number, string>;

Invert an enum-object (name → wire value) into the raw → label form a published option set takes, so a named set is declared ONCE — as the enum callers write against — and the published domain cannot drift from it.

Parameters

enumObj

Readonly<Record<string, number>>

Returns

Record<number, string>

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.