Module

xdk-core/src/constant/constant

XDK constant module, which provides access to all enumerations and constants used in XDK. These constants are exposed publicly to allow developers to use it without hard-coding these enumerations or numbers in their application.

This module also exposes two static functions that can be used to convert enumerations values, in lower-spinal-case, to enumerator key, in UPPER_SNAKE_CASE, and vice versa.

In normal circumstances, requiring this module in your define section will be sufficient as this module will provide you with access to everything available in the constant namespace.