Heatzy API for Node.js - v13.0.0
    Preparing search index...

    Function updateDevice

    • Method decorator that merges the decorated method's resolved payload into the host's in-memory model before returning it — so a mutation echo (setValues) or a fresh read (values) immediately refreshes the registry entity without waiting for the next sync.

      Type Parameters

      Parameters

      • target: (...args: TArgs) => Promise<TResult>

        The decorated method; must resolve to a (possibly partial) attribute payload.

      • _context: ClassMethodDecoratorContext

        TC39 decoration context; pins the decorator kind at type level.

      Returns (...args: TArgs) => Promise<TResult>

      The replacement method that updates the model after execution.