refactor(wt-plugin): tighten TS definitions

This commit is contained in:
kontrollanten 2020-12-07 08:42:36 +01:00 committed by Chocobozzz
parent 46d992d208
commit d94ca8d0b7
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()
}
updateVideoFile (
private updateVideoFile (
videoFile: VideoFile,
options: {
forcePlay?: boolean,