Skip to content

@mega-yfue/eufy-sdk / MethodMember

Interface: MethodMember<F>

A method the table cannot derive: its value is not one param's, so it owns its whole signature.

The escape hatch that keeps the table honest instead of pretending everything is a property — a sensitivity STEP is resolved across four wire ids and two numeric directions, so it is neither a getter over one param nor a momentary command. Its signature flows through to the surface type.

Type Parameters

F

F

Properties

answers?

ts
optional answers?: true;

This member ANSWERS rather than ACTS: a sub-API namespace (ptz.preset()) or a live query whose returned value is the whole point (lock.getAutoLockState()).

Both take no arguments, but that arity says nothing about a control — calling one and discarding the answer is not what it is for. So the empty argument list is NOT derived here, leaving the arguments unstated, which is exactly what keeps it from being auto-offered. It stays described, and callable.


args?

ts
optional args?: readonly ActionArgSpec[];

What the method accepts, for a signature whose arity does not state it: a parameter with a DEFAULT is absent from Function.length, so locate(on = true) would otherwise be described as taking nothing at all.

Only needed for that case. A method taking its arguments plainly is described as existing with its arguments unstated, and a nullary one has them derived (see describe).


available?

ts
optional available?: (ctx) => boolean;

Install only where this holds — see ValueMember.available.

Parameters

ctx

CommandContext

Returns

boolean


description

ts
description: string;

method

ts
method: (deps) => F;

Parameters

deps

MemberDeps

Returns

F

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.