Use number instead of string in TS quality definitions

Using strings for the quality doesn't work, plyr expects numbers, so this fixes the definitions.
This commit is contained in:
Morgan Zolob 2020-02-24 11:33:50 -08:00 committed by GitHub
parent 302fd93e86
commit fea5e76b76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -94,9 +94,8 @@ declare class Plyr {
/**
* Gets or sets the quality for the player. The setter accepts a value from the options specified in your config.
* Remarks: YouTube only. HTML5 will follow.
*/
quality: string;
quality: number;
/**
* Gets or sets the current loop state of the player.
@ -475,8 +474,8 @@ declare namespace Plyr {
}
interface QualityOptions {
default: string;
options: string[];
default: number;
options: number[];
}
interface LoopOptions {