• Creates a feature class amendment (and decorator).

    Decorate a class with this decorator to define it as a feature like this:

    @Feature({ needs: [OtherFeature, MyComponent] })
    class MyFeature {
    // ...
    }

    Such feature can be passed to bootstrapComponents function or referenced by other features.

    This is an alternative to direct call to FeatureDef.define method.

    Returns

    Feature class amendment and decorator.

    Type Parameters

    • TClass extends Class<any, TClass> = Class<any>

      Amended feature class type.

    • TAmended extends AeFeature<TClass, TAmended> = AeFeature<TClass>

      Amended feature entity type.

    Parameters

    • Rest ...amendments: (FeatureDef | Amendment<TAmended>)[]

      Feature definitions or amendments to apply.

    Returns FeatureAmendment<TClass, TAmended>

Generated using TypeDoc