Fixed a few type issues

This commit is contained in:
Jason Axley 2025-08-15 09:05:30 -07:00
parent 311ac7104e
commit d8f07eb956
3 changed files with 41 additions and 34 deletions

View file

@ -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