Revert "refactor(wt-plugin): tighten TS definitions"

This reverts commit cdca521e15.
This commit is contained in:
kontrollanten 2020-12-07 14:18:37 +01:00 committed by Chocobozzz
parent d94ca8d0b7
commit 8426a71144
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class WebTorrentPlugin extends Plugin {
private downloadSpeeds: number[] = []
constructor (player: videojs.Player, options: WebtorrentPluginOptions) {
constructor (player: videojs.Player, options?: WebtorrentPluginOptions) {
super(player)
this.startTime = timeToInt(options.startTime)
@ -129,7 +129,7 @@ class WebTorrentPlugin extends Plugin {
: this.pickAverageVideoFile()
}
private updateVideoFile (
updateVideoFile (
videoFile: VideoFile,
options: {
forcePlay?: boolean,