All files / json-crdt-extensions/quill-delta index.ts

100% Statements 10/10
100% Branches 0/0
33.33% Functions 1/3
100% Lines 9/9

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 1844x 44x 44x 44x 44x 44x     44x   44x         276x    
import {ExtensionId} from '../constants';
import {QuillDeltaNode} from './QuillDeltaNode';
import {QuillDeltaApi} from './QuillDeltaApi';
import {MNEMONIC} from './constants';
import {Extension} from '../../json-crdt/extensions/Extension';
import {SCHEMA} from '../peritext/constants';
import type {QuillDataNode} from './types';
 
export {QuillDeltaNode, QuillDeltaApi};
 
export const quill = new Extension<ExtensionId.quill, QuillDataNode, QuillDeltaNode, QuillDeltaApi, [text: string]>(
  ExtensionId.quill,
  MNEMONIC,
  QuillDeltaNode,
  QuillDeltaApi,
  (text: string) => SCHEMA(text),
);