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

    Class FacadeManager

    Lazily creates and caches facade instances using a WeakMap keyed by entity reference. Ensures each registry entity maps to exactly one facade throughout its lifetime.

    Index
    • Returns the cached facade for the given entity, lazily creating one on first access; passing undefined returns null.

      Parameters

      • instance: Device

        Registry entity to wrap, or undefined.

      Returns DeviceFacadeAny

      The facade, or null when no instance was supplied.

    • Returns the cached facade for the given entity, lazily creating one on first access; passing undefined returns null.

      Returns null

      The facade, or null when no instance was supplied.

    • Returns the cached facade for the given entity, lazily creating one on first access; passing undefined returns null.

      Parameters

      • Optionalinstance: Device

        Registry entity to wrap, or undefined.

      Returns DeviceFacadeAny | null

      The facade, or null when no instance was supplied.