mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
Callback handler should accept an optional event parameter
This commit is contained in:
2
types/fscreen/index.d.ts
vendored
2
types/fscreen/index.d.ts
vendored
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user