FeatureDef: {
    define<TClass>(this: void, featureType: TClass, ...defs: readonly FeatureDef[]): TClass;
    merge(this: void, ...defs: readonly FeatureDef[]): FeatureDef;
    of(this: void, featureType: Class<any>): FeatureDef;
}

Type declaration

  • define:function
    • Defines a feature.

      Either creates new or extends an existing feature definition and stores it under [FeatureDef__symbol] key.

      Returns

      The type instance.

      Type Parameters

      • TClass extends Class<any, TClass>

        Feature type.

      Parameters

      • this: void
      • featureType: TClass

        Feature class constructor.

      • Rest ...defs: readonly FeatureDef[]

        Feature definitions.

      Returns TClass

  • merge:function
  • of:function
    • Extracts feature definition options from its type.

      Returns

      Feature definition options. May be empty when there is no feature definition found in the given featureType.

      Parameters

      • this: void
      • featureType: Class<any>

        Target feature class constructor.

      Returns FeatureDef

Generated using TypeDoc