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

    Function setting

    • Accessor decorator that delegates storage to an external SettingManager (e.g. persistent settings), falling back to the in-memory field when none is configured. The setting key is resolved once at decoration time rather than on every get/set.

      Parameters

      • target: ClassAccessorDecoratorTarget<HasSettingManager, string>

        The underlying accessor descriptor provided by the runtime.

      • context: ClassAccessorDecoratorContext

        The accessor decoration context carrying the property name.

      Returns ClassAccessorDecoratorResult<HasSettingManager, string>

      The replacement accessor that routes through settingManager when present.