Skip to main content

Interface: ModelClass<M>

Extracts the instance type of a model class.

Type Parameters​

Type Parameter
M extends AnyModel | AnyDataModel

Constructors​

Constructor​

new ModelClass(initialData): M;

Parameters​

ParameterType
initialDataany

Returns​

M

Properties​

fromSnapshotProcessor?​

optional fromSnapshotProcessor?: (sn) => any;

Parameters​

ParameterType
snany

Returns​

any


toSnapshotProcessor?​

optional toSnapshotProcessor?: (sn, modelInstance) => any;

Parameters​

ParameterType
snany
modelInstanceany

Returns​

any