MELCloud & MELCloud Home API for Node.js - v23.3.3
    Preparing search index...

    Function syncDevices

    • Method decorator factory that invokes the sync callback after the decorated method completes. Works with any class that exposes notifySync (facades) or onSync (API services).

      Parameters

      • root0: { type?: DeviceType } = {}

        Options object.

        • Optionaltype?: DeviceType

          Optional device type to pass to the sync callback.

      Returns <TResult>(
          target: (...args: any[]) => Promise<TResult>,
          _context: ClassMethodDecoratorContext,
      ) => (...args: unknown[]) => Promise<TResult>

      A method decorator that triggers sync after execution.