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:
David Richey
2018-03-13 15:40:22 -04:00
parent 63ecc4d05d
commit 97a1b6313d
+2 -2
View File
@@ -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 {