diff --git a/src/ffi/js/workspace.rs b/src/ffi/js/workspace.rs index bf7dd2a..1dd43d5 100644 --- a/src/ffi/js/workspace.rs +++ b/src/ffi/js/workspace.rs @@ -66,6 +66,11 @@ impl Workspace { Ok(self.delete(&path).await?) } + #[napi(js_name = "detach")] + pub async fn js_detach(&self, path: String) -> bool { + self.detach(&path) + } + #[napi(js_name = "event")] pub async fn js_event(&self) -> napi::Result { Ok(JsEvent::from(self.event().await?))