diff --git a/crates/loro-wasm/src/lib.rs b/crates/loro-wasm/src/lib.rs
index fc6899de..92cd53c6 100644
--- a/crates/loro-wasm/src/lib.rs
+++ b/crates/loro-wasm/src/lib.rs
@@ -192,6 +192,8 @@ extern "C" {
pub type JsImportStatus;
#[wasm_bindgen(typescript_type = "(change: ChangeMeta) => boolean")]
pub type JsTravelChangeFunction;
+ #[wasm_bindgen(typescript_type = "(string|number)[]")]
+ pub type JsContainerPath;
}
mod observer {
@@ -980,7 +982,7 @@ impl LoroDoc {
/// Get the path from the root to the container
#[wasm_bindgen(js_name = "getPathToContainer")]
- pub fn get_path_to_container(&self, id: JsContainerID) -> JsResult