fix compile warnings

This commit is contained in:
rcmerci
2026-01-15 23:15:35 +08:00
parent dd5493b42a
commit 1ff30cb9ca
2 changed files with 3 additions and 3 deletions

View File

@@ -88,7 +88,7 @@
(swap! *sse-clients disj res))))
(defn- <invoke!
[proxy method direct-pass? args]
[^js proxy method direct-pass? args]
(let [args' (if direct-pass?
(into-array (or args []))
(if (string? args)

View File

@@ -127,7 +127,7 @@
[data-dir _sqlite pool-name]
(p/let [repo-dir-path (repo-dir data-dir pool-name)
_ (ensure-dir! repo-dir-path)
pool (js-obj)]
^js pool (js-obj)]
(set! (.-repoDir pool) repo-dir-path)
(set! (.-getCapacity pool) (fn [] 1))
(set! (.-pauseVfs pool) (fn [] nil))
@@ -146,7 +146,7 @@
(fs/writeFile full-path (->buffer data)))))
(defn- remove-vfs!
[pool]
[^js pool]
(when pool
(fs/rm (.-repoDir pool) #js {:recursive true :force true})))