refactor: 프론트엔드 리펙토링
This commit is contained in:
@@ -21,9 +21,23 @@ export type IndexedDbSynchronizationState =
|
||||
| "CONFIRMED";
|
||||
|
||||
export type IndexedDbConnectionStatus =
|
||||
| Readonly<{ kind: "CLOSED"; reason: "NOT_OPENED" | "VERSION_CHANGE" | "FORCED" }>
|
||||
| Readonly<{
|
||||
kind: "CLOSED";
|
||||
/**
|
||||
* NOT_OPENED means the current open attempt has settled without a live
|
||||
* connection. A blocked upgrade may therefore be observed as BLOCKED
|
||||
* while it is waiting, then transition to CLOSED/NOT_OPENED when its
|
||||
* blocked deadline fails closed.
|
||||
*/
|
||||
reason: "NOT_OPENED" | "VERSION_CHANGE" | "FORCED";
|
||||
}>
|
||||
| Readonly<{ kind: "OPENING"; targetVersion: number }>
|
||||
| Readonly<{
|
||||
/**
|
||||
* A live open/upgrade attempt is currently waiting for another
|
||||
* IndexedDB context. BLOCKED is transient and is not the settled state
|
||||
* after the blocked deadline has expired.
|
||||
*/
|
||||
kind: "BLOCKED";
|
||||
currentVersion: number;
|
||||
targetVersion: number;
|
||||
|
||||
Reference in New Issue
Block a user