Move MediaElement interface to the global types file

This commit is contained in:
Robin Townsend 2022-06-16 10:01:52 -04:00
commit f2dbd5ff96
2 changed files with 8 additions and 8 deletions

View file

@ -21,4 +21,10 @@ declare global {
// TODO: https://gitlab.matrix.org/matrix-org/olm/-/issues/10
OLM_OPTIONS: Record<string, string>;
}
// TypeScript doesn't know about the experimental setSinkId method, so we
// declare it ourselves
interface MediaElement extends HTMLMediaElement {
setSinkId: (id: string) => void;
}
}