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
| Parameter | Type |
|---|---|
initialData | any |
Returns
M
Properties
fromSnapshotProcessor?
optional fromSnapshotProcessor?: (sn) => any;
Parameters
| Parameter | Type |
|---|---|
sn | any |
Returns
any
toSnapshotProcessor?
optional toSnapshotProcessor?: (sn, modelInstance) => any;
Parameters
| Parameter | Type |
|---|---|
sn | any |
modelInstance | any |
Returns
any