diff --git a/package.json b/package.json index 3c1d6ac..d7ceb40 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "16.0.2", "electron-packager": "^14.0.2", "ts-loader": "^2.0.3", - "typescript": "^2.2.2", + "typescript": "^4.2.4", "webpack": "^2.3.3" }, "dependencies": { diff --git a/src/components/Analyzer.tsx b/src/components/Analyzer.tsx index addae88..49be38a 100644 --- a/src/components/Analyzer.tsx +++ b/src/components/Analyzer.tsx @@ -713,7 +713,6 @@ export class AnalyzerView extends React.Component void; } +declare global { + interface Document { + mozCancelFullScreen?: () => Promise; + msExitFullscreen?: () => Promise; + webkitExitFullscreen?: () => Promise; + mozFullScreenElement?: Element; + msFullscreenElement?: Element; + webkitFullscreenElement?: Element; + } + + interface HTMLElement { + msRequestFullscreen?: () => Promise; + mozRequestFullscreen?: () => Promise; + webkitRequestFullscreen?: () => Promise; + } +} + function generateUUID() { // Public Domain/MIT var d = new Date().getTime(); if (typeof performance !== 'undefined' && typeof performance.now === 'function'){ @@ -173,8 +190,8 @@ export class PlayerSplitComponent extends React.Component