diff options
author | Morgan Zolob <mogzol@users.noreply.github.com> | 2020-02-24 11:33:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 11:33:50 -0800 |
commit | fea5e76b7612f0eb8c0e1b2fa1a4e6d36e85120d (patch) | |
tree | ee13277d4e22b0a037508ced0115b8265d11d722 /src/js | |
parent | 302fd93e86974d5c3804b1f2c16555278d0e3a60 (diff) | |
download | plyr-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.ts | 7 |
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 { |