aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.d.ts
Commit message (Collapse)AuthorAgeFilesLines
* Enhance types (#1841)Manuel Raynaud2020-12-201-1/+29
| | | | | | | | | | | | | | | | | | * 🏷️(type) enhance QualityOptions type Some optional properties in the QualityOptions were missing. The forced and onChange property allwoing to use an external handler. * ♻️(type) use Plyr.Provider for the readonly provider property 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 * 🏷️(type) add missing elements property in Plyr class In Plyr class, you can access elements set in cache. This property is missing in the class definition. The Plyr.Elements is for now incomplete.
* Merge branch 'master' into developSam Potts2020-10-191-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # README.md # demo/dist/demo.min.js # demo/dist/demo.min.js.map # dist/plyr.min.js # dist/plyr.min.js.map # dist/plyr.min.mjs # dist/plyr.min.mjs.map # dist/plyr.polyfilled.min.js # dist/plyr.polyfilled.min.js.map # dist/plyr.polyfilled.min.mjs # dist/plyr.polyfilled.min.mjs.map # package.json # src/js/plugins/vimeo.js # src/js/plugins/youtube.js # src/js/ui.js # yarn.lock
| * fix(plyr.d.ts): add force to FullScreenOptionsDima An2020-10-141-1/+1
| |
| * chore: fix blankVideo typesEthan Veres2020-08-121-1/+1
| |
* | chore: lintingSam Potts2020-10-191-48/+39
| |
* | Merge pull request #1824 from akuma06/patch-2Sam Potts2020-08-301-40/+70
|\ \ | | | | | | Fixing "missing code in detail" for PlyrEvent type
| * | Fixing "missing code in detail" for PlyrEvent typeakuma062020-05-051-40/+70
| |/ | | | | | | | | When using typescript and listening for youtube statechange event, it is missing the code property definition inside the event (even though it is provided in the code). By making events a map of key-value, we can add easily custom event type for specific event name. Since YouTube "statechange" event differs from the basic PlyrEvent, I added a new Event Type "PlyrStateChangeEvent" having a code property corresponding to a YoutubeState enum defined by the YouTube API documentation. This pattern follows how addEventListener in the lib.dom.d.ts is defined.
* / Fix PreviewThumbnailsOptions typeTakeshi2020-07-131-1/+1
|/ | | According to the docs, the `src` should also accept an array of strings.
* add missing previewThumbnails optionstaylorchu2020-04-281-0/+10
|
* HousekeepingSam Potts2020-04-241-1/+1
|
* Converted to 2 space indentationSam Potts2020-04-111-476/+476
|
* Merge pull request #1686 from lawchihon/masterSam Potts2020-03-291-0/+1
|\ | | | | Added missing full screen options for type definition
| * Added missing full screen options for type definitionJohn Law2020-02-121-0/+1
| |
* | Merge pull request #1706 from sampotts/masterSam Potts2020-02-261-4/+3
|\ \ | | | | | | Merge back
| * | Use number instead of string in TS quality definitionsMorgan Zolob2020-02-241-4/+3
| |/ | | | | Using strings for the quality doesn't work, plyr expects numbers, so this fixes the definitions.
* / Add missing Typescripts types and optionsHugues2020-02-251-0/+25
|/
* Docs updatesSam Potts2020-02-091-14/+49
|
* typescript typingsondratra2019-08-071-0/+560