Merge pull request #1701 from mogzol/patch-1
Use number instead of string in TS quality definitions
This commit is contained in:
commit
84eef1d747
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.
|
* 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.
|
* Gets or sets the current loop state of the player.
|
||||||
@ -475,8 +474,8 @@ declare namespace Plyr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface QualityOptions {
|
interface QualityOptions {
|
||||||
default: string;
|
default: number;
|
||||||
options: string[];
|
options: number[];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface LoopOptions {
|
interface LoopOptions {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user