Callback handler should accept an optional event parameter

This commit is contained in:
Terry Mun
2018-08-17 12:51:58 +02:00
parent 3118fe7f1f
commit 256e2c3441

View File

@@ -5,7 +5,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
type Handler = () => void;
type Handler = (e?: Event) => void;
type RequestFullScreenFunction = (element: Element) => void;
type EventName = 'fullscreenEnabled' | 'fullscreenElement' | 'requestFullscreen' | 'exitFullscreen' | 'fullscreenchange' | 'fullscreenerror';