MCPcopy
hub / github.com/signalapp/Signal-Desktop / Window

Interface Window

ts/window.d.ts:148–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 // We want to extend various globals, so we need to use interfaces.
147 // oxlint-disable-next-line typescript/consistent-type-definitions
148 interface Window {
149 enterKeyboardMode: () => void;
150 enterMouseMode: () => void;
151 getAppInstance: () => string | undefined;
152 getBuildCreation: () => number;
153 getBuildExpiration: () => number;
154 getHostName: () => string;
155 getInteractionMode: () => 'mouse' | 'keyboard';
156 getServerPublicParams: () => string;
157 getGenericServerPublicParams: () => string;
158 getBackupServerPublicParams: () => string;
159 getSfuUrl: () => string;
160 getIceServerOverride: () => string;
161 getSocketStatus: () => SocketStatuses;
162 getTitle: () => string;
163 waitForEmptyEventQueue: () => Promise<void>;
164 getVersion: () => string;
165 isAfterVersion: (version: string, anotherVersion: string) => boolean;
166 isBeforeVersion: (version: string, anotherVersion: string) => boolean;
167 initialTheme?: ThemeType;
168 nodeSetImmediate: typeof globalThis.setImmediate;
169 platform: string;
170 setImmediate: typeof globalThis.setImmediate;
171 sendChallengeRequest: (request: IPCChallengeRequest) => void;
172 systemTheme: SystemThemeType;
173
174 Signal: SignalCoreType;
175
176 getServerTrustRoots: () => Array<string>;
177 logAuthenticatedConnect?: () => void;
178
179 // ========================================================================
180 // The types below have been somewhat organized. See DESKTOP-4801
181 // ========================================================================
182
183 ConversationController: ConversationController;
184 Events: IPCEventsType;
185 MessageCache: MessageCache;
186 Whisper: WhisperType;
187 // Note: used in background.html, and not type-checked
188 startApp: () => void;
189
190 // IPC
191 IPC: IPCType;
192
193 // State
194 reduxActions: ReduxActions;
195 reduxStore: Store<StateType>;
196
197 // Feature Flags
198 Flags: FeatureFlagType;
199
200 // Test only
201 SignalCI?: CIType;
202
203 // TODO DESKTOP-4801
204 SignalContext: SignalContextType;
205

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected