Interface ModelClass<M>

Extracts the instance type of a model class.

interface ModelClass<M> {
    new ModelClassnew (initialData): M;
    fromSnapshotProcessor?: ((sn) => any);
    toSnapshotProcessor?: ((sn, modelInstance) => any);
}

Type Parameters

Constructors

  • Parameters

    • initialData: any

    Returns M

Properties

fromSnapshotProcessor?: ((sn) => any)

Type declaration

    • (sn): any
    • Parameters

      • sn: any

      Returns any

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

Type declaration

    • (sn, modelInstance): any
    • Parameters

      • sn: any
      • modelInstance: any

      Returns any