mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-06 12:25:03 +00:00
feat: add return type for map and list
This commit is contained in:
parent
0a421d3931
commit
39ece045a8
1 changed files with 5 additions and 8 deletions
|
@ -8,14 +8,7 @@ export {
|
||||||
setPanicHook,
|
setPanicHook,
|
||||||
Transaction,
|
Transaction,
|
||||||
} from "loro-wasm";
|
} from "loro-wasm";
|
||||||
import {
|
import { ContainerID, Loro, Transaction } from "loro-wasm";
|
||||||
ContainerID,
|
|
||||||
ContainerType,
|
|
||||||
Loro,
|
|
||||||
LoroList,
|
|
||||||
LoroMap,
|
|
||||||
Transaction,
|
|
||||||
} from "loro-wasm";
|
|
||||||
|
|
||||||
export type { ContainerID, ContainerType } from "loro-wasm";
|
export type { ContainerID, ContainerType } from "loro-wasm";
|
||||||
|
|
||||||
|
@ -141,6 +134,8 @@ declare module "loro-wasm" {
|
||||||
pos: number,
|
pos: number,
|
||||||
container: string,
|
container: string,
|
||||||
): never;
|
): never;
|
||||||
|
|
||||||
|
get(index: number): Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface LoroMap {
|
interface LoroMap {
|
||||||
|
@ -164,5 +159,7 @@ declare module "loro-wasm" {
|
||||||
key: string,
|
key: string,
|
||||||
container_type: string,
|
container_type: string,
|
||||||
): never;
|
): never;
|
||||||
|
|
||||||
|
get(key: string): Value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue