@terrencecrowley/ot-js
Version:
Javascript OT library
18 lines (17 loc) • 655 B
TypeScript
import * as OT from "./ottypes";
export declare const OpCounterAdd = 1;
export declare const OpCounterDel = 2;
export declare type CounterEdit = [number, string, any];
export declare class OTCounterResource extends OT.OTResourceBase {
constructor(rid: string);
static factory(rid: string): OTCounterResource;
copy(): OTCounterResource;
effectivelyEqual(rhs: OTCounterResource): boolean;
transform(prior: OTCounterResource, bPriorIsService: boolean): void;
compose(rhs: OTCounterResource): void;
apply(startValue: any): any;
minimize(): any;
loadObject(o: any): any;
toObject(): any;
fromObject(o: any): void;
}