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 f492eac commit 00e8667Copy full SHA for 00e8667
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
/** Union of all error types indicating a stale/dead IDB connection. Used by the visibilitychange probe. */
0 commit comments