about summary refs log tree commit diff
path: root/src/storage/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/index.ts')
-rw-r--r--src/storage/index.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/storage/index.ts b/src/storage/index.ts
index 4d45134e1..4c4200510 100644
--- a/src/storage/index.ts
+++ b/src/storage/index.ts
@@ -67,6 +67,13 @@ export class Storage<Scopes extends unknown[], Schema> {
   }
 
   /**
+   * For debugging purposes
+   */
+  removeAll() {
+    this.store.clearAll()
+  }
+
+  /**
    * Fires a callback when the storage associated with a given key changes
    *
    * @returns Listener - call `remove()` to stop listening