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;