From fea5e76b7612f0eb8c0e1b2fa1a4e6d36e85120d Mon Sep 17 00:00:00 2001 From: Morgan Zolob Date: Mon, 24 Feb 2020 11:33:50 -0800 Subject: [PATCH] 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. --- src/js/plyr.d.ts | 7 +++---- 1 file 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 {