mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-21 19:29:37 +00:00
Fixed a few type issues
This commit is contained in:
parent
311ac7104e
commit
d8f07eb956
3 changed files with 41 additions and 34 deletions
|
|
@ -18,14 +18,14 @@ class FolderWatcher extends EventEmitter {
|
|||
constructor() {
|
||||
super()
|
||||
|
||||
/** @type {{id:string, name:string, libraryFolders:import('./models/Folder')[], paths:string[], watcher:Watcher[]}[]} */
|
||||
/** @type {{id:string, name:string, libraryFolders:import('./models/LibraryFolder')[], paths:string[], watcher:Watcher[]}[]} */
|
||||
this.libraryWatchers = []
|
||||
/** @type {PendingFileUpdate[]} */
|
||||
this.pendingFileUpdates = []
|
||||
this.pendingDelay = 10000
|
||||
/** @type {NodeJS.Timeout} */
|
||||
/** @type {NodeJS.Timeout | null} */
|
||||
this.pendingTimeout = null
|
||||
/** @type {Task} */
|
||||
/** @type {Task | null} */
|
||||
this.pendingTask = null
|
||||
|
||||
this.filesBeingAdded = new Set()
|
||||
|
|
@ -36,7 +36,7 @@ class FolderWatcher extends EventEmitter {
|
|||
this.ignoreDirs = []
|
||||
/** @type {string[]} */
|
||||
this.pendingDirsToRemoveFromIgnore = []
|
||||
/** @type {NodeJS.Timeout} */
|
||||
/** @type {NodeJS.Timeout | null} */
|
||||
this.removeFromIgnoreTimer = null
|
||||
|
||||
this.disabled = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue