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 { +/** + * @public + * @param handler - + * @returns + */ +export async function createStorage (handler: (tx: Tx) => void): Promise { const txes = await getModel() const hierarchy = new Hierarchy()