We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6445eaa commit d98d169Copy full SHA for d98d169
1 file changed
lib/storage/providers/IDBKeyValProvider/createStore.ts
@@ -33,8 +33,10 @@ function isBudgetedHealError(error: unknown): boolean {
33
return isBackingStoreError(error) || isConnectionLostError(error);
34
}
35
36
-function getBudgetedHealErrorLabel(error: unknown): 'backing store' | 'connection lost' {
37
- return isBackingStoreError(error) ? 'backing store' : 'connection lost';
+function getBudgetedHealErrorLabel(error: unknown): string {
+ if (isBackingStoreError(error)) return 'backing store';
38
+ if (isConnectionLostError(error)) return 'connection lost';
39
+ return 'unknown';
40
41
42
// This is a copy of the createStore function from idb-keyval, we need a custom implementation
0 commit comments