diff --git a/crates/loro-wasm/src/lib.rs b/crates/loro-wasm/src/lib.rs index 2b261143..967b181b 100644 --- a/crates/loro-wasm/src/lib.rs +++ b/crates/loro-wasm/src/lib.rs @@ -2973,7 +2973,7 @@ interface LoroText { * } * ``` */ - getCursor(pos: usize, side?: Side): StablePosition | undefined; + getCursor(pos: number, side?: Side): StablePosition | undefined; } interface LoroList { @@ -3011,7 +3011,7 @@ interface LoroList { * } * ``` */ - getCursor(pos: usize, side?: Side): StablePosition | undefined; + getCursor(pos: number, side?: Side): StablePosition | undefined; } export type Side = -1 | 0 | 1;