From 1135b1acac176bdc44746abd099268943395e7b6 Mon Sep 17 00:00:00 2001 From: AntLevin <75933307+AntLevin@users.noreply.github.com> Date: Wed, 29 Sep 2021 14:05:56 +0300 Subject: [PATCH] Fix types - add tagUrl in ads option with custom VAST (#2319) --- src/js/plyr.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/js/plyr.d.ts b/src/js/plyr.d.ts index 8c5cbf91..9877ff85 100644 --- a/src/js/plyr.d.ts +++ b/src/js/plyr.d.ts @@ -454,7 +454,7 @@ declare namespace Plyr { * Allows binding of event listeners to the controls before the default handlers. See the defaults.js for available listeners. * If your handler prevents default on the event (event.preventDefault()), the default handler will not fire. */ - listeners?: { [key: string]: (error: PlyrEvent) => void }; + listeners?: {[key: string]: (error: PlyrEvent) => void}; /** * active: Toggles if captions should be active by default. language: Sets the default language to load (if available). 'auto' uses the browser language. @@ -528,7 +528,8 @@ declare namespace Plyr { interface AdOptions { enabled: boolean; - publisherId: string; + publisherId?: string; + tagUrl?: string; } interface SpeedOptions { @@ -656,7 +657,7 @@ declare namespace Plyr { } interface PlyrEvent extends CustomEvent { - readonly detail: { readonly plyr: Plyr }; + readonly detail: {readonly plyr: Plyr}; } enum YoutubeState {