DataLayerComposition typedef
DataLayerComposition = ({DataStoreContract dataStore, EntityContext entityContext, MarshallerContract marshaller})
Composition output for the marshaller / datastore / entity-context cluster: three objects whose dependencies are mutually circular by nature (entities call DataStore, DataStore is built using Marshaller, Marshaller's serializers construct entities). Returned by composeDataLayer, which is the only sanctioned entry point for building these three together.
Implementation
typedef DataLayerComposition = ({
MarshallerContract marshaller,
DataStoreContract dataStore,
EntityContext entityContext,
});