From f613e9716d4c5df19bd6906ada976a7b64450c80 Mon Sep 17 00:00:00 2001 From: Terry Mun Date: Fri, 17 Aug 2018 11:23:37 +0200 Subject: [PATCH] requestFullscreenFunction should return strictly typed function --- types/fscreen/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/fscreen/index.d.ts b/types/fscreen/index.d.ts index dfe2f6117f..bc1d3d3813 100644 --- a/types/fscreen/index.d.ts +++ b/types/fscreen/index.d.ts @@ -4,6 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped type Handler = () => void; +type RequestFullScreenFunction = (element: Element) => void; declare class Fscreen { readonly fullscreenElement: Element | undefined; @@ -15,7 +16,7 @@ declare class Fscreen { addEventListener(type: string, handler: Handler, useCapture?: boolean): void; removeEventListener(type: string, handler: Handler): void; requestFullscreen(element: Element): void; - requestFullscreenFunction(element: Element): void; + requestFullscreenFunction(element: Element): RequestFullScreenFunction; } declare const fscreen: Fscreen;