Preparing search index...
The search index is not available
mobx-keystone
mobx-keystone
ModelClass
Interface ModelClass<M>
Extracts the instance type of a model class.
interface
ModelClass
<
M
extends
AnyModel
|
AnyDataModel
>
{
new
ModelClass
(
initialData
:
any
)
:
M
;
fromSnapshotProcessor
?:
(
sn
:
any
)
=>
any
;
toSnapshotProcessor
?:
(
sn
:
any
,
modelInstance
:
any
)
=>
any
;
}
Type Parameters
M
extends
AnyModel
|
AnyDataModel
Index
Constructors
constructor
Properties
from
Snapshot
Processor?
to
Snapshot
Processor?
Constructors
constructor
new
ModelClass
(
initialData
:
any
)
:
M
Parameters
initialData
:
any
Returns
M
Properties
Optional
from
Snapshot
Processor
fromSnapshotProcessor
?:
(
sn
:
any
)
=>
any
Optional
to
Snapshot
Processor
toSnapshotProcessor
?:
(
sn
:
any
,
modelInstance
:
any
)
=>
any
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
from
Snapshot
Processor
to
Snapshot
Processor
mobx-keystone
Loading...
Extracts the instance type of a model class.