mobx-keystone

    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

    Index

    Constructors

    • Parameters

      • initialData: any

      Returns M

    Properties

    fromSnapshotProcessor?: (sn: any) => any
    toSnapshotProcessor?: (sn: any, modelInstance: any) => any
    MMNEPVFCICPMFPCPTTAAATR