Skip to content

Commit

Permalink
chore(js): added glue detach fn
Browse files Browse the repository at this point in the history
  • Loading branch information
frelodev committed Sep 26, 2024
1 parent a89b8a4 commit 2daab9e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ffi/js/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<JsEvent> {
Ok(JsEvent::from(self.event().await?))
Expand Down

0 comments on commit 2daab9e

Please sign in to comment.