mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Fixed errors in the interface definition of MediaSession. The "metadata" property is supposed to be nullable, but not optional. The second parameter of the "setActionHandler" method is also supposed to be nullable, but not optional.
https://wicg.github.io/mediasession/#the-mediasession-interface https://heycam.github.io/webidl/#dfn-nullable-type
This commit is contained in:
Vendored
+2
-2
@@ -19,10 +19,10 @@ interface MediaSession {
|
||||
// Current media session playback state.
|
||||
playbackState: MediaSessionPlaybackState;
|
||||
// Current media session meta data.
|
||||
metadata?: MediaMetadata|null;
|
||||
metadata: MediaMetadata|null;
|
||||
|
||||
// Set/Unset actions handlers.
|
||||
setActionHandler(action: MediaSessionAction, listener?: () => void): void;
|
||||
setActionHandler(action: MediaSessionAction, listener: (() => void)|null): void;
|
||||
}
|
||||
|
||||
interface MediaImage {
|
||||
|
||||
Reference in New Issue
Block a user