A "feature set" is a set of features for a cluster. The names of features present appear in this set.

TODO - Feature metadata is a bit messy and needs a refactor to consolidate available/supported and names/codes

Hierarchy

Constructors

Accessors

Methods

Constructors

  • Create a new feature set from an iterable that returns active names or from an object of the form { [featureName: string]: true }

    Parameters

    Returns FeatureSet

Accessors

  • get array(): string[]
  • Access features as an array of feature names.

    Returns string[]

  • get record(): {
        [k: string]: boolean;
    }
  • Access features as an object mapping feature name -> true.

    Returns {
        [k: string]: boolean;
    }

    • [k: string]: boolean

Methods

  • Determine if I am identical to another set.

    Parameters

    Returns boolean

  • Type Parameters

    • T

    Parameters

    • fn: ((name: string) => T)
        • (name): T
        • Parameters

          • name: string

          Returns T

    Returns T[]