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:
parent
302fd93e86
commit
fea5e76b76
7
src/js/plyr.d.ts
vendored
7
src/js/plyr.d.ts
vendored
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user