From 08ad3801b8df46a7451bcefc30dab0ac7ffd3fef Mon Sep 17 00:00:00 2001 From: FabianLars Date: Thu, 27 Apr 2023 12:20:35 +0200 Subject: [PATCH] readme --- plugins/fs-watch/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/fs-watch/README.md b/plugins/fs-watch/README.md index 8162d1fe..59729b4d 100644 --- a/plugins/fs-watch/README.md +++ b/plugins/fs-watch/README.md @@ -56,18 +56,18 @@ import { watch, watchImmediate } from "tauri-plugin-fs-watch-api"; // can also watch an array of paths const stopWatching = await watch( "/path/to/something", - { recursive: true }, (event) => { const { type, payload } = event; - } + }, + { recursive: true } ); const stopRawWatcher = await watchImmediate( ["/path/a", "/path/b"], - {}, (event) => { const { path, operation, cookie } = event; - } + }, + {} ); ```