Skip to content

@opencraft/providence


Interface: Drivers

Defined in: types/Drivers.ts:4

Properties

makeModuleFactory

makeModuleFactory: (store) => ModuleFactory

Defined in: types/Drivers.ts:13

The makeModuleFactory function should take the upstream library's store, whatever shape it may come in, and create a function which allows you to add a module to this store, if given a MakeModuleOptions object.

This function should return a function, which takes no arguments and returns nothing, that will remove the module from the store.

Parameters

store

any

Returns

ModuleFactory


makeProxyFactory

makeProxyFactory: (store) => StoreProxyFactory

Defined in: types/Drivers.ts:19

The makeProxyFactory function should take the upstream library's store, whatever shape it may come in, and create a function which builds a proxy BoundStore if given a MakeModuleOptions object.

Parameters

store

any

Returns

StoreProxyFactory