Fix types - add tagUrl in ads option with custom VAST (#2319)

This commit is contained in:
AntLevin 2021-09-29 14:05:56 +03:00 committed by GitHub
parent 30ffb30a97
commit 1135b1acac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
src/js/plyr.d.ts vendored
View File

@ -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. * 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. * 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. * 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 { interface AdOptions {
enabled: boolean; enabled: boolean;
publisherId: string; publisherId?: string;
tagUrl?: string;
} }
interface SpeedOptions { interface SpeedOptions {
@ -656,7 +657,7 @@ declare namespace Plyr {
} }
interface PlyrEvent extends CustomEvent { interface PlyrEvent extends CustomEvent {
readonly detail: { readonly plyr: Plyr }; readonly detail: {readonly plyr: Plyr};
} }
enum YoutubeState { enum YoutubeState {