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

    Function syncDevices

    • Method decorator that invokes a sync notification after the decorated method resolves. The host implements notifySync structurally — facades enrich the payload with their id before delegating, HeatzyAPI emits straight through the lifecycle emitter.

      Intended for one-shot post-method notifications; this is not a subscription. Exceptions thrown by the consumer's callback propagate — the decorator does not swallow them, so a buggy sync handler surfaces on the caller rather than dying silently.

      Type Parameters

      • TArgs extends readonly unknown[]
      • TResult

      Parameters

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

        The decorated method.

      • _context: ClassMethodDecoratorContext

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

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

      The replacement method that triggers sync after execution.