chore(js): added ack function to glue

This commit is contained in:
frelodev 2024-10-20 17:51:14 +02:00
parent 53508414e9
commit 9ab5033935

View file

@ -31,6 +31,13 @@ impl BufferController {
Ok(()) Ok(())
} }
/// Acknowledge TextChange
#[napi(js_name = "ack")]
pub fn js_ack(&self, version: Vec<i64>){
self.ack(version);
}
/// Remove registered buffer callback /// Remove registered buffer callback
#[napi(js_name = "clearCallback")] #[napi(js_name = "clearCallback")]
pub fn js_clear_callback(&self) { pub fn js_clear_callback(&self) {