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.

Source

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