@@ -14,9 +14,6 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- // this is needed to tell TS about globalThis.Olm
18
- import "@matrix-org/olm" ;
19
-
20
17
export { } ;
21
18
22
19
declare global {
@@ -34,39 +31,18 @@ declare global {
34
31
}
35
32
}
36
33
37
- interface MediaDevices {
38
- // This is experimental and types don't know about it yet
39
- // https://github.com/microsoft/TypeScript/issues/33232
40
- getDisplayMedia ( constraints : MediaStreamConstraints | DesktopCapturerConstraints ) : Promise < MediaStream > ;
41
- getUserMedia ( constraints : MediaStreamConstraints | DesktopCapturerConstraints ) : Promise < MediaStream > ;
42
- }
43
-
44
- interface DesktopCapturerConstraints {
45
- audio :
46
- | boolean
47
- | {
48
- mandatory : {
49
- chromeMediaSource : string ;
50
- chromeMediaSourceId : string ;
51
- } ;
52
- } ;
53
- video :
54
- | boolean
55
- | {
56
- mandatory : {
57
- chromeMediaSource : string ;
58
- chromeMediaSourceId : string ;
59
- } ;
60
- } ;
34
+ // Chrome-specific getUserMedia constraints
35
+ interface MediaTrackConstraints {
36
+ mandatory ?: {
37
+ chromeMediaSource : string ;
38
+ chromeMediaSourceId : string ;
39
+ } ;
61
40
}
62
41
63
- // eslint-disable-next-line @typescript-eslint/no-empty-object-type
64
- interface DummyInterfaceWeShouldntBeUsingThis { }
65
-
66
42
interface Navigator {
67
43
// We check for the webkit-prefixed getUserMedia to detect if we're
68
44
// on webkit: we should check if we still need to do this
69
- webkitGetUserMedia ?: DummyInterfaceWeShouldntBeUsingThis ;
45
+ webkitGetUserMedia ?: unknown ;
70
46
}
71
47
72
48
export interface Uint8ArrayToBase64Options {
0 commit comments