API Reference
@univerjs
@univerjs/core
namespaces
JSON1
variables
Type

@univerjs/core v0.1.17Docs


Variable: type

const type: {
  BLACKHOLE: ConflictType;
  DROP_COLLISION: ConflictType;
  RM_UNEXPECTED_CONTENT: ConflictType;
  apply: typeof apply;
  checkValidOp: typeof checkValidOp;
  compose: typeof compose;
  invert: typeof invert;
  invertWithDoc: typeof invertWithDoc;
  makeInvertible: typeof makeInvertible;
  name: string;
  normalize: typeof normalize;
  readCursor: (op) => ReadCursor;
  registerSubtype: typeof registerSubtype;
  transform: typeof transform;
  transformNoConflict: (op1, op2, side) => JSONOp;
  transformPosition: typeof transformPosition;
  tryTransform: typeof tryTransform;
  typeAllowingConflictsPred: (allowConflict) => {
     BLACKHOLE: ConflictType;
     DROP_COLLISION: ConflictType;
     RM_UNEXPECTED_CONTENT: ConflictType;
     apply: typeof apply;
     checkValidOp: typeof checkValidOp;
     compose: typeof compose;
     invert: typeof invert;
     invertWithDoc: typeof invertWithDoc;
     makeInvertible: typeof makeInvertible;
     name: string;
     normalize: typeof normalize;
     readCursor: (op) => ReadCursor;
     registerSubtype: typeof registerSubtype;
     transformNoConflict: (op1, op2, side) => JSONOp;
     transformPosition: typeof transformPosition;
     tryTransform: typeof tryTransform;
     typeAllowingConflictsPred: any;
     uri: string;
     writeCursor: () => WriteCursor;
     create: Doc;
     isNoop: boolean;
     setDebug: void;
     transform: JSONOp;
    };
  uri: string;
  writeCursor: () => WriteCursor;
  create: Doc;
  isNoop: boolean;
  setDebug: void;
};

Type declaration

NameTypeDefined in
BLACKHOLEConflictTypesubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:24
DROP_COLLISIONConflictTypesubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:23
RM_UNEXPECTED_CONTENTConflictTypesubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:22
applytypeof applysubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:14
checkValidOptypeof checkValidOpsubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:12
composetypeof composesubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:16
inverttypeof invertsubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:20
invertWithDoctypeof invertWithDocsubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:21
makeInvertibletypeof makeInvertiblesubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:19
namestringsubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:4
normalizetypeof normalizesubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:13
readCursor(op) => ReadCursorsubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:6
registerSubtypetypeof registerSubtypesubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:11
transformtypeof transformsubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:18
transformNoConflict(op1, op2, side) => JSONOpsubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:25
transformPositiontypeof transformPositionsubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:15
tryTransformtypeof tryTransformsubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:17
typeAllowingConflictsPred(allowConflict) => { BLACKHOLE: ConflictType; DROP_COLLISION: ConflictType; RM_UNEXPECTED_CONTENT: ConflictType; apply: typeof apply; checkValidOp: typeof checkValidOp; compose: typeof compose; invert: typeof invert; invertWithDoc: typeof invertWithDoc; makeInvertible: typeof makeInvertible; name: string; normalize: typeof normalize; readCursor: (op) => ReadCursor; registerSubtype: typeof registerSubtype; transformNoConflict: (op1, op2, side) => JSONOp; transformPosition: typeof transformPosition; tryTransform: typeof tryTransform; typeAllowingConflictsPred: any; uri: string; writeCursor: () => WriteCursor; create: Doc; isNoop: boolean; setDebug: void; transform: JSONOp; }submodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:26
uristringsubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:5
writeCursor() => WriteCursorsubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:7
createDocsubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:8
isNoopbooleansubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:9
setDebugvoidsubmodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:10

Defined in

submodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/json1.d.ts:3


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.