From 79f68a6706d4dd26eb7aed395567c8a596004a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Thu, 14 Nov 2019 18:25:37 +0100 Subject: [PATCH] Renamed exported Storage type to TKStorage To avoid conflict with existing web type --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 268aea8..6cf2e40 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,12 +5,12 @@ import { NodeDirectoryStorage } from "./node"; /** * Base type for storage usage */ -export type Storage = KeyValueStorage +export type TKStorage = KeyValueStorage /** * Get the best "local" storage available */ -export function getLocalStorage(appname: string): Storage { +export function getLocalStorage(appname: string): TKStorage { try { return new ScopedStorage(new BrowserLocalStorage(), appname); } catch { @@ -26,6 +26,6 @@ export function getLocalStorage(appname: string): Storage { /** * Get a in-memory volatile storage */ -export function getMemoryStorage(): Storage { +export function getMemoryStorage(): TKStorage { return new MemoryStorage(); }