Skip to content

Commit

Permalink
♻️(type) use Plyr.Provider for the readonly provider property
Browse files Browse the repository at this point in the history
A type exists to define all available providers. This type isn't used in
the Plyr class definition and the same provider list is also defined.
This code is refactored to use the Plyr.Provider type
  • Loading branch information
lunika committed Nov 17, 2020
1 parent 64f3175 commit 5892ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/plyr.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ declare class Plyr {
/**
* Returns the current video Provider
*/
readonly provider: 'html5' | 'vimeo' | 'youtube';
readonly provider: Plyr.Provider;

/**
* Returns the native API for Vimeo or Youtube players
Expand Down

0 comments on commit 5892ba2

Please sign in to comment.