From 97a1b6313ddd69577db29636cf064a0ecc8d3d5a Mon Sep 17 00:00:00 2001 From: David Richey Date: Tue, 13 Mar 2018 15:40:22 -0400 Subject: [PATCH] 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 --- types/wicg-mediasession/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/wicg-mediasession/index.d.ts b/types/wicg-mediasession/index.d.ts index ac08c8ef4f..05a769b2a2 100644 --- a/types/wicg-mediasession/index.d.ts +++ b/types/wicg-mediasession/index.d.ts @@ -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 {