Skip to content

Commit

Permalink
Merge pull request #56 from hexedtech/fix/js-ack
Browse files Browse the repository at this point in the history
chore(js): added ack function to glue
  • Loading branch information
alemidev authored Oct 20, 2024
2 parents 5350841 + 9ab5033 commit e973a25
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 e973a25

Please sign in to comment.