Skip to content

@mega-yfue/eufy-sdk / ValueKind

Type Alias: ValueKind

ts
type ValueKind = KnownValueKind | string & object;

A value kind — KnownValueKind, left open on purpose.

Adding a member to a closed union is a breaking change for every caller with an exhaustive switch; adding one to the open form is not. A caller maps the kinds it knows and falls through to a default for the rest, so a newly-modelled kind degrades to "shown raw" instead of failing to compile.

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.