Spaces:
Runtime error
Runtime error
File size: 616 Bytes
75120e8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
// Extend the Window interface
declare global {
interface Window {
requestAnimationFrame(callback: FrameRequestCallback): number;
cancelAnimationFrame(handle: number): void;
MediaRecorder: typeof MediaRecorder;
}
interface MediaRecorderOptions {
mimeType?: string;
audioBitsPerSecond?: number;
videoBitsPerSecond?: number;
bitsPerSecond?: number;
}
interface MediaTrackConstraints {
displaySurface?: 'browser' | 'monitor' | 'window';
cursor?: 'always' | 'motion' | 'never';
}
}
// Export the types
export {};
|