UNPKG

@terrencecrowley/ot-js

Version:
30 lines (29 loc) 896 B
export interface IOTResource { resourceName: string; underlyingType: string; edits: any[]; length: number; empty(): void; isEmpty(): boolean; copy(): IOTResource; effectivelyEqual(rhs: IOTResource): boolean; transform(rhs: IOTResource, bPriorIsService: boolean): void; compose(rhs: IOTResource): void; apply(startValue: any): any; minimize(): void; } export declare class OTResourceBase implements IOTResource { resourceName: string; underlyingType: string; edits: any[]; constructor(rname: string, utype: string); readonly length: number; empty(): void; isEmpty(): boolean; copy(): OTResourceBase; effectivelyEqual(rhs: OTResourceBase): boolean; transform(rhs: OTResourceBase, bPriorIsService: boolean): void; compose(rhs: OTResourceBase): void; apply(startValue: any): any; minimize(): void; }