Skip to content

@mega-yfue/eufy-sdk / ValueKeys

Type Alias: ValueKeys<M>

ts
type ValueKeys<M> = { [K in keyof M]: M[K] extends ValueMember ? M[K] extends { writeOnly: true } | { unexposed: true } ? never : K : never }[keyof M];

The members a getter is derived for: those backed by a device property, minus the two kinds that declare a param but publish no read — a writeOnly setting the device never reports back, and an unexposed one whose value space is not evidenced yet.

Type Parameters

M

M extends Members

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.