All files / json-crdt/codec/structural/binary constants.ts

100% Statements 17/17
100% Branches 4/4
100% Functions 2/2
100% Lines 17/17

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22156x   156x 156x 156x 156x 156x 156x 156x 156x     156x 156x 156x 156x 156x 156x 156x 156x    
import {JsonCrdtDataType} from '../../../../json-crdt-patch/constants';
 
export enum CRDT_MAJOR {
  CON = JsonCrdtDataType.con,
  VAL = JsonCrdtDataType.val,
  OBJ = JsonCrdtDataType.obj,
  VEC = JsonCrdtDataType.vec,
  STR = JsonCrdtDataType.str,
  BIN = JsonCrdtDataType.bin,
  ARR = JsonCrdtDataType.arr,
}
 
export enum CRDT_MAJOR_OVERLAY {
  CON = JsonCrdtDataType.con << 5,
  VAL = CRDT_MAJOR.VAL << 5,
  VEC = CRDT_MAJOR.VEC << 5,
  OBJ = CRDT_MAJOR.OBJ << 5,
  STR = CRDT_MAJOR.STR << 5,
  BIN = CRDT_MAJOR.BIN << 5,
  ARR = CRDT_MAJOR.ARR << 5,
}