Interface: AnyDataModel
Any kind of data model instance.
Extends
BaseDataModel<any>
Properties
[propsTypeSymbol]
[propsTypeSymbol]: any;
Inherited from
BaseDataModel.[propsTypeSymbol]
$
readonly $: object;
Data part of the model, which is observable and will be serialized in snapshots. Use it if one of the data properties matches one of the model properties/functions. This also allows access to the backed values of transformed properties.
Index Signature
[key: string]: any
Inherited from
Methods
toString()
toString(options?): string;
Parameters
| Parameter | Type |
|---|---|
options? | { withData?: boolean; } |
options.withData? | boolean |
Returns
string
Inherited from
typeCheck()
typeCheck(): TypeCheckError | null;
Performs a type check over the model instance. For this to work a data type has to be declared as part of the model properties.
Returns
TypeCheckError | null
A TypeCheckError or null if there is no error.