Move MediaElement interface to the global types file
This commit is contained in:
parent
dcae5ad5f2
commit
f2dbd5ff96
2 changed files with 8 additions and 8 deletions
6
src/@types/global.d.ts
vendored
6
src/@types/global.d.ts
vendored
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue