summaryrefslogtreecommitdiff
path: root/script/meta/bee/filewatch.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/meta/bee/filewatch.lua')
-rw-r--r--script/meta/bee/filewatch.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/script/meta/bee/filewatch.lua b/script/meta/bee/filewatch.lua
new file mode 100644
index 00000000..b5211355
--- /dev/null
+++ b/script/meta/bee/filewatch.lua
@@ -0,0 +1,32 @@
+---@meta
+
+---@class bee.filewatch.instance
+local instance = {}
+
+---@param path string
+function instance:add(path)
+end
+
+---@param enable boolean
+---@return boolean
+function instance:set_recursive(enable)
+end
+
+---@param enable boolean
+---@return boolean
+function instance:set_follow_symlinks(enable)
+end
+
+---@param callback? fun(path: string):boolean
+---@return boolean
+function instance:set_filter(callback)
+end
+
+---@class bee.filewatch
+local fw = {}
+
+---@return bee.filewatch.instance
+function fw.create()
+end
+
+return fw