@@ -82,19 +82,10 @@ declare global {
8282 mxMatrixClientPeg : IMatrixClientPeg ;
8383 mxReactSdkConfig : DeepReadonly < IConfigOptions > ;
8484
85- // Needed for Safari, unknown to TypeScript
86- webkitAudioContext : typeof AudioContext ;
87-
8885 // https://docs.microsoft.com/en-us/previous-versions/hh772328(v=vs.85)
8986 // we only ever check for its existence, so we can ignore its actual type
9087 MSStream ?: unknown ;
9188
92- // https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1029#issuecomment-869224737
93- // https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas
94- OffscreenCanvas ?: {
95- new ( width : number , height : number ) : OffscreenCanvas ;
96- } ;
97-
9889 mxContentMessages : ContentMessages ;
9990 mxToastStore : ToastStore ;
10091 mxDeviceListener : DeviceListener ;
@@ -156,31 +147,10 @@ declare global {
156147 fetchWindowIcons ?: boolean ;
157148 }
158149
159- interface Document {
160- // Safari & IE11 only have this prefixed: we used prefixed versions
161- // previously so let's continue to support them for now
162- webkitExitFullscreen ( ) : Promise < void > ;
163- msExitFullscreen ( ) : Promise < void > ;
164- readonly webkitFullscreenElement : Element | null ;
165- readonly msFullscreenElement : Element | null ;
166- }
167-
168- interface Navigator {
169- userLanguage ?: string ;
170- }
171-
172150 interface StorageEstimate {
173151 usageDetails ?: { [ key : string ] : number } ;
174152 }
175153
176- interface Element {
177- // Safari & IE11 only have this prefixed: we used prefixed versions
178- // previously so let's continue to support them for now
179- webkitRequestFullScreen ( options ?: FullscreenOptions ) : Promise < void > ;
180- msRequestFullscreen ( options ?: FullscreenOptions ) : Promise < void > ;
181- // scrollIntoView(arg?: boolean | _ScrollIntoViewOptions): void;
182- }
183-
184154 // https://github.com/microsoft/TypeScript/issues/28308#issuecomment-650802278
185155 interface AudioWorkletProcessor {
186156 readonly port : MessagePort ;
@@ -239,11 +209,4 @@ declare global {
239209 var mx_rage_store : IndexedDBLogStore ;
240210}
241211
242- // add method which is missing from the node typing
243- declare module "url" {
244- interface Url {
245- format ( ) : string ;
246- }
247- }
248-
249212/* eslint-enable @typescript-eslint/naming-convention */
0 commit comments