LogoRobo.js
Framework

applyModelExtensions()

Function: applyModelExtensions()

function applyModelExtensions<T>(model): T

Apply model extensions from all plugins to a model instance.

This is called when a model is created to add plugin-provided methods.

Type Parameters

Type Parameter
T extends object

Parameters

ParameterTypeDescription
modelTThe model instance to extend

Returns

T

The extended model (same reference, mutated)

On this page