- Feature<TClass, TAmended>(...amendments: (FeatureDef | Amendment<TAmended>)[]): FeatureAmendment<TClass, TAmended>
-
Type Parameters
-
TClass extends Class<any, TClass> = Class<any>
-
TAmended extends AeFeature<TClass, TAmended> = AeFeature<TClass>
Parameters
-
Rest
...amendments: (FeatureDef | Amendment<TAmended>)[]
Creates a feature class amendment (and decorator).
Decorate a class with this decorator to define it as a feature like this:
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.