refactor(wt-plugin): tighten TS definitions
This commit is contained in:
parent
46d992d208
commit
d94ca8d0b7
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue