chore: update types to include string for controls

This commit is contained in:
Sam Potts 2022-11-17 12:22:52 +11:00
parent ea3675fcdc
commit db1b89b1c1

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

@ -341,7 +341,7 @@ declare namespace Plyr {
* id (the unique id for the player), seektime (the seektime step in seconds), and title (the media title). See CONTROLS.md for more info on how the html needs to be structured. * id (the unique id for the player), seektime (the seektime step in seconds), and title (the media title). See CONTROLS.md for more info on how the html needs to be structured.
* Defaults to ['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'fullscreen'] * Defaults to ['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'fullscreen']
*/ */
controls?: string[] | ((id: string, seektime: number, title: string) => unknown) | Element; controls?: string | string[] | ((id: string, seektime: number, title: string) => unknown) | Element;
/** /**
* If you're using the default controls are used then you can specify which settings to show in the menu * If you're using the default controls are used then you can specify which settings to show in the menu
@ -606,7 +606,7 @@ declare namespace Plyr {
interface MarkersOptions { interface MarkersOptions {
enabled: boolean; enabled: boolean;
points: MarkersPoints[] points: MarkersPoints[];
} }
export interface Elements { export interface Elements {