mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-25 00:24:48 +01:00
chore(js): added glue detach fn
This commit is contained in:
parent
a89b8a454c
commit
2daab9ed87
1 changed files with 5 additions and 0 deletions
|
@ -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?))
|
||||
|
|
Loading…
Reference in a new issue