aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorMorgan Zolob <mogzol@users.noreply.github.com>2020-02-24 11:33:50 -0800
committerGitHub <noreply@github.com>2020-02-24 11:33:50 -0800
commitfea5e76b7612f0eb8c0e1b2fa1a4e6d36e85120d (patch)
treeee13277d4e22b0a037508ced0115b8265d11d722 /src/js
parent302fd93e86974d5c3804b1f2c16555278d0e3a60 (diff)
downloadplyr-fea5e76b7612f0eb8c0e1b2fa1a4e6d36e85120d.tar.lz
plyr-fea5e76b7612f0eb8c0e1b2fa1a4e6d36e85120d.tar.xz
plyr-fea5e76b7612f0eb8c0e1b2fa1a4e6d36e85120d.zip
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.
Diffstat (limited to 'src/js')
-rw-r--r--src/js/plyr.d.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/js/plyr.d.ts b/src/js/plyr.d.ts
index cd204a6f..50179468 100644
--- a/src/js/plyr.d.ts
+++ b/src/js/plyr.d.ts
@@ -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 {