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
Seems like notify changed the serialization in notify-rs/notify#558 and we thought with serialization-compat-6 feature introduced in notify-rs/notify#568, it would be the same as before but looks like there's a bug so... Will take a look and see if I could open a fix there
The Problem:
The docs state that the watch() function of plugin-fs as follows:
and the
cb
is a function defined as:(event: WatchEvent) => void
the interface
WatchEvent
is declared as follows:And checking out interface
WatchEventKind
:plugins-workspace/plugins/fs/guest-js/index.ts
Line 1177 in da64d9b
However, upon implementing the watch() callback function, I found out that the actual data didn't contain
type
instead it hadkind
.ie. the interface states that
type : WatchEventKind
, but the data was actuallykind: WatchEventKind
Actual callback data sample:
And upon checking out the watcher.rs native rust code, I can see that it's also declared as
kind
Am I missing something?
How to fix?
As a workaround, I've declared a custom interface for this process in my own source code.
I think it'd be best if the type declaration was fixed on javascript.
Additional Info & Environment
my Cargo.toml:
Using verion
2.2.0
fortauri-plugin-fs
didn't fix.Operating system & App Platform : MacOS Silicon
The text was updated successfully, but these errors were encountered: