From 57c17692eb4d02c5c8c2191b7cd61aba96122fd3 Mon Sep 17 00:00:00 2001
From: Andrey Platov <andrey@hardcoreeng.com>
Date: Wed, 4 Aug 2021 11:16:47 +0200
Subject: [PATCH] finalize `dev-storage`

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
---
 dev/storage/src/index.ts   | 5 +----
 dev/storage/src/storage.ts | 7 ++++++-
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/dev/storage/src/index.ts b/dev/storage/src/index.ts
index c3c1cdb151..6be884967e 100644
--- a/dev/storage/src/index.ts
+++ b/dev/storage/src/index.ts
@@ -14,7 +14,4 @@
 // limitations under the License.
 //
 
-/**
- * @public
- */
-export const x = 42
+export { createStorage } from './storage'
diff --git a/dev/storage/src/storage.ts b/dev/storage/src/storage.ts
index 16add392d4..e9c8fb0a73 100644
--- a/dev/storage/src/storage.ts
+++ b/dev/storage/src/storage.ts
@@ -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 hierarchy = new Hierarchy()