@terrencecrowley/ot-js
Version:
Javascript OT library
20 lines (19 loc) • 697 B
TypeScript
import * as OT from "./ottypes";
export declare const OpMapSet = 1;
export declare const OpMapDel = 2;
export declare type MapEdit = [number, string, any];
export declare class OTMapResource extends OT.OTResourceBase {
constructor(rid: string);
static factory(rid: string): OTMapResource;
set(p: string, a: any): OTMapResource;
del(p: string): OTMapResource;
copy(): OTMapResource;
effectivelyEqual(rhs: OTMapResource): boolean;
transform(prior: OTMapResource, bPriorIsService: boolean): void;
compose(rhs: OTMapResource): void;
apply(startValue: any): any;
minimize(): any;
loadObject(o: any): any;
toObject(): any;
fromObject(o: any): void;
}