mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
finalize dev-storage
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
6a34c5a8a0
commit
57c17692eb
@ -14,7 +14,4 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
|
|
||||||
/**
|
export { createStorage } from './storage'
|
||||||
* @public
|
|
||||||
*/
|
|
||||||
export const x = 42
|
|
||||||
|
@ -71,7 +71,12 @@ class DevStorage implements Storage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function connect (handler: (tx: Tx) => void): Promise<Storage> {
|
/**
|
||||||
|
* @public
|
||||||
|
* @param handler -
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
export async function createStorage (handler: (tx: Tx) => void): Promise<Storage> {
|
||||||
const txes = await getModel()
|
const txes = await getModel()
|
||||||
|
|
||||||
const hierarchy = new Hierarchy()
|
const hierarchy = new Hierarchy()
|
||||||
|
Loading…
Reference in New Issue
Block a user