FeatureFlag

Hierarchy

  • FeatureFlag

Index

Properties

enabled

enabled: boolean

Indicates whether or not this feature flag is enabled.

id

id: string

The ID for this feature flag.

properties

Properties of this feature flag, listed as key-value pairs.

Methods

getBooleanProperty

  • getBooleanProperty(key: string): boolean | null
  • Get value of a feature flag property of type boolean.

    Parameters

    • key: string

      The key of the property.

    Returns boolean | null

    The value of the property if the key is found and is of type boolean. If the key is not found or if there is a type mismatch, this method will return a null.

getNumberProperty

  • getNumberProperty(key: string): number | null
  • Get value of a feature flag property of type number.

    Parameters

    • key: string

      The key of the property.

    Returns number | null

    The value of the property if the key is found and is of type number. If the key is not found or if there is a type mismatch, this method will return a null.

getStringProperty

  • getStringProperty(key: string): string | null
  • Get value of a feature flag property of type string.

    Parameters

    • key: string

      The key of the property.

    Returns string | null

    The value of the property if the key is found and is of type string. If the key is not found or if there is a type mismatch, this method will return a null.