2022-05-10 17:18:26 +01:00
|
|
|
/*
|
2024-09-06 10:22:13 +02:00
|
|
|
Copyright 2022-2024 New Vector Ltd.
|
2022-05-10 17:18:26 +01:00
|
|
|
|
2024-09-06 10:22:13 +02:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
Please see LICENSE in the repository root for full details.
|
2022-05-10 17:18:26 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import "matrix-js-sdk/src/@types/global";
|
2024-11-14 19:06:38 +01:00
|
|
|
import type { DurationFormat as PolyfillDurationFormat } from "@formatjs/intl-durationformat";
|
2024-08-27 07:47:20 -04:00
|
|
|
import { Controls } from "../controls";
|
2022-05-30 10:09:13 +01:00
|
|
|
|
|
|
|
|
declare global {
|
2023-01-03 18:33:11 +00:00
|
|
|
interface Document {
|
|
|
|
|
// Safari only supports this prefixed, so tell the type system about it
|
|
|
|
|
webkitExitFullscreen: () => void;
|
|
|
|
|
webkitFullscreenElement: HTMLElement | null;
|
|
|
|
|
}
|
|
|
|
|
|
2024-08-27 07:47:20 -04:00
|
|
|
interface Window {
|
|
|
|
|
controls: Controls;
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-03 11:24:10 +00:00
|
|
|
interface HTMLElement {
|
|
|
|
|
// Safari only supports this prefixed, so tell the type system about it
|
|
|
|
|
webkitRequestFullscreen: () => void;
|
|
|
|
|
}
|
2024-11-14 19:06:38 +01:00
|
|
|
|
|
|
|
|
namespace Intl {
|
|
|
|
|
// Add DurationFormat as part of the Intl namespace because we polyfill it
|
|
|
|
|
const DurationFormat: typeof PolyfillDurationFormat;
|
|
|
|
|
}
|
2022-05-30 10:09:13 +01:00
|
|
|
}
|