Skip to main content

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​

ParameterTypeDescription
modelTModelThe model to apply the convention to.

Returns​

TModel

A new instance if the model was modified; otherwise, the original model.

Defined in​

packages/verse-core/src/conventions/convention.ts:20