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,
|
||||
Transaction,
|
||||
} from "loro-wasm";
|
||||
import {
|
||||
ContainerID,
|
||||
ContainerType,
|
||||
Loro,
|
||||
LoroList,
|
||||
LoroMap,
|
||||
Transaction,
|
||||
} from "loro-wasm";
|
||||
import { ContainerID, Loro, Transaction } from "loro-wasm";
|
||||
|
||||
export type { ContainerID, ContainerType } from "loro-wasm";
|
||||
|
||||
|
@ -141,6 +134,8 @@ declare module "loro-wasm" {
|
|||
pos: number,
|
||||
container: string,
|
||||
): never;
|
||||
|
||||
get(index: number): Value;
|
||||
}
|
||||
|
||||
interface LoroMap {
|
||||
|
@ -164,5 +159,7 @@ declare module "loro-wasm" {
|
|||
key: string,
|
||||
container_type: string,
|
||||
): never;
|
||||
|
||||
get(key: string): Value;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue