From d94ca8d0b77732988b5b4c6e309c64ca35201823 Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Mon, 7 Dec 2020 08:42:36 +0100 Subject: refactor(wt-plugin): tighten TS definitions --- client/src/assets/player/webtorrent/webtorrent-plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src') 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, -- cgit v1.2.3