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

Constructors

  • Parameters

    • initialData: any

    Returns M

Properties

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