chore: fix wasm types (#569)
Some checks failed
Release WASM / Release (push) Has been cancelled
Test All / build (push) Has been cancelled

* chore: fix wasm types

* fix: type err
This commit is contained in:
Zixuan Chen 2024-11-29 15:53:53 +08:00 committed by GitHub
parent d54ad80bb6
commit 46f578bcd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 25 additions and 25 deletions

44
Cargo.lock generated
View file

@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo. # This file is automatically @generated by Cargo.
# It is not intended for manual editing. # It is not intended for manual editing.
version = 3 version = 4
[[package]] [[package]]
name = "addr2line" name = "addr2line"
@ -707,7 +707,7 @@ dependencies = [
"fxhash", "fxhash",
"itertools 0.12.1", "itertools 0.12.1",
"loro 0.16.12", "loro 0.16.12",
"loro 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7)", "loro 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7)",
"loro 0.16.2 (git+https://github.com/loro-dev/loro.git?rev=90470658435ec4c62b5af59ebb82fe9e1f5aa761)", "loro 0.16.2 (git+https://github.com/loro-dev/loro.git?rev=90470658435ec4c62b5af59ebb82fe9e1f5aa761)",
"loro 1.1.0", "loro 1.1.0",
"num_cpus", "num_cpus",
@ -1031,13 +1031,13 @@ dependencies = [
[[package]] [[package]]
name = "loro" name = "loro"
version = "0.16.2" version = "0.16.2"
source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7#d2b0520f8633f96146a49ec205bd5e7056880f1a" source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7#d2b0520f8633f96146a49ec205bd5e7056880f1a"
dependencies = [ dependencies = [
"either", "either",
"enum-as-inner 0.6.0", "enum-as-inner 0.6.0",
"generic-btree", "generic-btree",
"loro-delta 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7)", "loro-delta 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7)",
"loro-internal 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7)", "loro-internal 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7)",
"tracing", "tracing",
] ]
@ -1057,7 +1057,7 @@ dependencies = [
[[package]] [[package]]
name = "loro" name = "loro"
version = "0.16.12" version = "0.16.12"
source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt@1.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7" source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt%401.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7"
dependencies = [ dependencies = [
"enum-as-inner 0.6.0", "enum-as-inner 0.6.0",
"generic-btree", "generic-btree",
@ -1091,12 +1091,12 @@ dependencies = [
[[package]] [[package]]
name = "loro-common" name = "loro-common"
version = "0.16.2" version = "0.16.2"
source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7#d2b0520f8633f96146a49ec205bd5e7056880f1a" source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7#d2b0520f8633f96146a49ec205bd5e7056880f1a"
dependencies = [ dependencies = [
"arbitrary", "arbitrary",
"enum-as-inner 0.6.0", "enum-as-inner 0.6.0",
"fxhash", "fxhash",
"loro-rle 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7)", "loro-rle 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7)",
"nonmax", "nonmax",
"serde", "serde",
"serde_columnar", "serde_columnar",
@ -1123,7 +1123,7 @@ dependencies = [
[[package]] [[package]]
name = "loro-common" name = "loro-common"
version = "0.16.12" version = "0.16.12"
source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt@1.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7" source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt%401.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7"
dependencies = [ dependencies = [
"arbitrary", "arbitrary",
"enum-as-inner 0.6.0", "enum-as-inner 0.6.0",
@ -1159,7 +1159,7 @@ dependencies = [
[[package]] [[package]]
name = "loro-delta" name = "loro-delta"
version = "0.16.2" version = "0.16.2"
source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7#d2b0520f8633f96146a49ec205bd5e7056880f1a" source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7#d2b0520f8633f96146a49ec205bd5e7056880f1a"
dependencies = [ dependencies = [
"arrayvec", "arrayvec",
"enum-as-inner 0.5.1", "enum-as-inner 0.5.1",
@ -1183,7 +1183,7 @@ dependencies = [
[[package]] [[package]]
name = "loro-delta" name = "loro-delta"
version = "0.16.12" version = "0.16.12"
source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt@1.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7" source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt%401.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7"
dependencies = [ dependencies = [
"arrayvec", "arrayvec",
"enum-as-inner 0.5.1", "enum-as-inner 0.5.1",
@ -1219,7 +1219,7 @@ dependencies = [
[[package]] [[package]]
name = "loro-internal" name = "loro-internal"
version = "0.16.2" version = "0.16.2"
source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7#d2b0520f8633f96146a49ec205bd5e7056880f1a" source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7#d2b0520f8633f96146a49ec205bd5e7056880f1a"
dependencies = [ dependencies = [
"append-only-bytes", "append-only-bytes",
"arref", "arref",
@ -1232,10 +1232,10 @@ dependencies = [
"im", "im",
"itertools 0.12.1", "itertools 0.12.1",
"leb128", "leb128",
"loro-common 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7)", "loro-common 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7)",
"loro-delta 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7)", "loro-delta 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7)",
"loro-rle 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7)", "loro-rle 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7)",
"loro_fractional_index 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7)", "loro_fractional_index 0.16.2 (git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7)",
"md5", "md5",
"num", "num",
"num-derive", "num-derive",
@ -1289,7 +1289,7 @@ dependencies = [
[[package]] [[package]]
name = "loro-internal" name = "loro-internal"
version = "0.16.12" version = "0.16.12"
source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt@1.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7" source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt%401.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7"
dependencies = [ dependencies = [
"append-only-bytes", "append-only-bytes",
"arref", "arref",
@ -1385,7 +1385,7 @@ dependencies = [
[[package]] [[package]]
name = "loro-kv-store" name = "loro-kv-store"
version = "0.16.2" version = "0.16.2"
source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt@1.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7" source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt%401.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7"
dependencies = [ dependencies = [
"bytes", "bytes",
"ensure-cov", "ensure-cov",
@ -1419,7 +1419,7 @@ dependencies = [
[[package]] [[package]]
name = "loro-rle" name = "loro-rle"
version = "0.16.2" version = "0.16.2"
source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7#d2b0520f8633f96146a49ec205bd5e7056880f1a" source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7#d2b0520f8633f96146a49ec205bd5e7056880f1a"
dependencies = [ dependencies = [
"append-only-bytes", "append-only-bytes",
"arref", "arref",
@ -1445,7 +1445,7 @@ dependencies = [
[[package]] [[package]]
name = "loro-rle" name = "loro-rle"
version = "0.16.12" version = "0.16.12"
source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt@1.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7" source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt%401.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7"
dependencies = [ dependencies = [
"append-only-bytes", "append-only-bytes",
"arref", "arref",
@ -1496,7 +1496,7 @@ dependencies = [
[[package]] [[package]]
name = "loro_fractional_index" name = "loro_fractional_index"
version = "0.16.2" version = "0.16.2"
source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt@0.16.7#d2b0520f8633f96146a49ec205bd5e7056880f1a" source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt%400.16.7#d2b0520f8633f96146a49ec205bd5e7056880f1a"
dependencies = [ dependencies = [
"imbl", "imbl",
"rand", "rand",
@ -1518,7 +1518,7 @@ dependencies = [
[[package]] [[package]]
name = "loro_fractional_index" name = "loro_fractional_index"
version = "0.16.12" version = "0.16.12"
source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt@1.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7" source = "git+https://github.com/loro-dev/loro.git?tag=loro-crdt%401.0.0-alpha.4#9bfe97bce4912c6dc8439817497d18423a0e8cb7"
dependencies = [ dependencies = [
"imbl", "imbl",
"once_cell", "once_cell",

View file

@ -190,7 +190,7 @@ extern "C" {
pub type JsCommitOption; pub type JsCommitOption;
#[wasm_bindgen(typescript_type = "ImportStatus")] #[wasm_bindgen(typescript_type = "ImportStatus")]
pub type JsImportStatus; pub type JsImportStatus;
#[wasm_bindgen(typescript_type = "(change: ChangeMeta) => boolean")] #[wasm_bindgen(typescript_type = "(change: Change) => boolean")]
pub type JsTravelChangeFunction; pub type JsTravelChangeFunction;
#[wasm_bindgen(typescript_type = "(string|number)[]")] #[wasm_bindgen(typescript_type = "(string|number)[]")]
pub type JsContainerPath; pub type JsContainerPath;
@ -4972,7 +4972,7 @@ export type TreeNodeJSON<T> = Omit<TreeNodeValue, 'meta' | 'children'> & {
interface LoroTree{ interface LoroTree{
toArray(): TreeNodeValue[]; toArray(): TreeNodeValue[];
getNodes(options?: { withDeleted: boolean = false }): LoroTreeNode[]; getNodes(options?: { withDeleted?: boolean } ): LoroTreeNode[];
} }
interface LoroMovableList { interface LoroMovableList {
@ -5068,7 +5068,7 @@ export type ExportMode = {
} | { } | {
mode: "updates-in-range", mode: "updates-in-range",
spans: { spans: {
id: ID, id: OpId,
len: number, len: number,
}[], }[],
}; };