Type fn strongly

This commit is contained in:
Daniel Imms
2018-11-22 10:52:55 -08:00
parent 549c28bfa4
commit 53fe096455
+1 -1
View File
@@ -11,7 +11,7 @@ import { Terminal } from 'xterm';
* @param fullscreen Toggle fullscreen on (true) or off (false)
*/
export function toggleFullScreen(term: Terminal, fullscreen: boolean): void {
let fn: Function;
let fn: (...tokens: string[]) => void;
if (typeof fullscreen === 'undefined') {
fn = (term.element.classList.contains('fullscreen')) ?