Skip to content

Commit

Permalink
chore(js): added ack function to glue
Browse files Browse the repository at this point in the history
  • Loading branch information
frelodev committed Oct 20, 2024
1 parent 5350841 commit 9ab5033
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ffi/js/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ impl BufferController {
Ok(())
}

/// Acknowledge TextChange
#[napi(js_name = "ack")]
pub fn js_ack(&self, version: Vec<i64>){
self.ack(version);
}


/// Remove registered buffer callback
#[napi(js_name = "clearCallback")]
pub fn js_clear_callback(&self) {
Expand Down

0 comments on commit 9ab5033

Please sign in to comment.