This commit is contained in:
Tommy D. Rossi
2025-11-24 16:40:07 +01:00
parent 5d93b977d1
commit 7eb5060d71
6 changed files with 31 additions and 26 deletions
+18
View File
@@ -0,0 +1,18 @@
import type { RelayConnection } from './relayConnection'
export type ConnectionState = 'disconnected' | 'reconnecting' | 'connected' | 'error'
export type TabState = 'connecting' | 'connected' | 'error'
export interface TabInfo {
targetId: string
state: TabState
errorText?: string
}
export interface ExtensionState {
connection: RelayConnection | undefined
connectedTabs: Map<number, TabInfo>
connectionState: ConnectionState
currentTabId: number | undefined
errorText: string | undefined
}