Merge pull request #56 from hexedtech/fix/js-ack

chore(js): added ack function to glue
This commit is contained in:
əlemi 2024-10-20 18:07:42 +02:00 committed by GitHub
commit e973a25370
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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) {