You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting this!
Due to how double works internally, this is not trivial to fix, because we only ever get events for when a file is imported, but we don't get notifications when files are removed. We might be able to hook into vite's / webpack's file watcher to get events for deleted files though...
Edit: This wouldn't take care of files that are deleted while the bundler isn't running though. Maybe we need some kind of "cleanup" process that runs when the bundler is started as well.
That doesn't actually do it, because vite only gets called if you actually import a file, and for most projects, the different pages are lazy loaded, so you would then only get types after you've opened the respective page in the browser. It would have to be a cleanup process which only removes the types where the file doesn't exist anymore.
If I remove some files,
double.d.ts
still contains data of a removed fileThe text was updated successfully, but these errors were encountered: