finalize dev-storage

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-08-04 11:16:47 +02:00
parent 6a34c5a8a0
commit 57c17692eb
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
2 changed files with 7 additions and 5 deletions

View File

@ -14,7 +14,4 @@
// limitations under the License. // limitations under the License.
// //
/** export { createStorage } from './storage'
* @public
*/
export const x = 42

View File

@ -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()