refactor(wt-plugin): tighten TS definitions

pull/3421/head
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[] = [] private downloadSpeeds: number[] = []
constructor (player: videojs.Player, options?: WebtorrentPluginOptions) { constructor (player: videojs.Player, options: WebtorrentPluginOptions) {
super(player) super(player)
this.startTime = timeToInt(options.startTime) this.startTime = timeToInt(options.startTime)
@ -129,7 +129,7 @@ class WebTorrentPlugin extends Plugin {
: this.pickAverageVideoFile() : this.pickAverageVideoFile()
} }
updateVideoFile ( private updateVideoFile (
videoFile: VideoFile, videoFile: VideoFile,
options: { options: {
forcePlay?: boolean, forcePlay?: boolean,