Changeset View
Changeset View
Standalone View
Standalone View
lib/types/electron-types.js
Show All 11 Lines | export type ElectronBridge = { | ||||
+onNavigate: OnNavigateListener => () => void, | +onNavigate: OnNavigateListener => () => void, | ||||
+clearHistory: () => void, | +clearHistory: () => void, | ||||
+doubleClickTopBar: () => void, | +doubleClickTopBar: () => void, | ||||
+setBadge: (number | string | null) => void, | +setBadge: (number | string | null) => void, | ||||
+version?: string, | +version?: string, | ||||
// Returns a callback that you can call to remove the listener | // Returns a callback that you can call to remove the listener | ||||
+onNewVersionAvailable?: OnNewVersionAvailableListener => () => void, | +onNewVersionAvailable?: OnNewVersionAvailableListener => () => void, | ||||
+updateToNewVersion?: () => void, | +updateToNewVersion?: () => void, | ||||
+platform?: 'windows' | 'macos', | |||||
}; | }; |