Interface ModelClass<M>

Extracts the instance type of a model class.

interface ModelClass<M> {
    new ModelClassnew (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)