@@ -82,19 +82,10 @@ declare global {
82
82
mxMatrixClientPeg : IMatrixClientPeg ;
83
83
mxReactSdkConfig : DeepReadonly < IConfigOptions > ;
84
84
85
- // Needed for Safari, unknown to TypeScript
86
- webkitAudioContext : typeof AudioContext ;
87
-
88
85
// https://docs.microsoft.com/en-us/previous-versions/hh772328(v=vs.85)
89
86
// we only ever check for its existence, so we can ignore its actual type
90
87
MSStream ?: unknown ;
91
88
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
-
98
89
mxContentMessages : ContentMessages ;
99
90
mxToastStore : ToastStore ;
100
91
mxDeviceListener : DeviceListener ;
@@ -156,31 +147,10 @@ declare global {
156
147
fetchWindowIcons ?: boolean ;
157
148
}
158
149
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
-
172
150
interface StorageEstimate {
173
151
usageDetails ?: { [ key : string ] : number } ;
174
152
}
175
153
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
-
184
154
// https://github.com/microsoft/TypeScript/issues/28308#issuecomment-650802278
185
155
interface AudioWorkletProcessor {
186
156
readonly port : MessagePort ;
@@ -239,11 +209,4 @@ declare global {
239
209
var mx_rage_store : IndexedDBLogStore ;
240
210
}
241
211
242
- // add method which is missing from the node typing
243
- declare module "url" {
244
- interface Url {
245
- format ( ) : string ;
246
- }
247
- }
248
-
249
212
/* eslint-enable @typescript-eslint/naming-convention */
0 commit comments