From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Mon, 7 Dec 2020 07:42:36 +0000 (+0100) Subject: refactor(wt-plugin): tighten TS definitions X-Git-Tag: v3.0.0-rc.1~120 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=sidebyside;h=d94ca8d0b77732988b5b4c6e309c64ca35201823;p=github%2FChocobozzz%2FPeerTube.git refactor(wt-plugin): tighten TS definitions --- diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts index 4eaaf51ec..959a55797 100644 --- a/client/src/assets/player/webtorrent/webtorrent-plugin.ts +++ b/client/src/assets/player/webtorrent/webtorrent-plugin.ts @@ -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() } - updateVideoFile ( + private updateVideoFile ( videoFile: VideoFile, options: { forcePlay?: boolean,