diff --git a/plugins/fs-watch/README.md b/plugins/fs-watch/README.md index 84b65109..34659a9b 100644 --- a/plugins/fs-watch/README.md +++ b/plugins/fs-watch/README.md @@ -57,7 +57,7 @@ import { watch, watchImmediate } from "tauri-plugin-fs-watch-api"; const stopWatching = await watch( "/path/to/something", (event) => { - const { type, payload } = event; + const { kind, path } = event; }, { recursive: true } ); @@ -65,7 +65,7 @@ const stopWatching = await watch( const stopRawWatcher = await watchImmediate( ["/path/a", "/path/b"], (event) => { - const { path, operation, cookie } = event; + const { type, paths, attrs } = event; }, {} );