Interface: Convention
Represents a convention that can be applied to a model.
Methods
apply()
apply<
TModel
>(model
:TModel
):TModel
Applies the convention to the specified model.
Type Parameters
Type Parameter |
---|
TModel extends AbstractModel |
Parameters
Parameter | Type | Description |
---|---|---|
model | TModel | The model to apply the convention to. |
Returns
TModel
A new instance if the model was modified; otherwise, the original model.