Skip to content

Commit

Permalink
feat(json-crdt-extensions): 🎸 add Slice type
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Apr 15, 2024
1 parent 9aed4e1 commit defb884
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/json-crdt-extensions/peritext/slice/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type {Range} from './Range';
import type {SliceType, Stateful} from '../types';
import type {ITimestampStruct} from '../../../json-crdt-patch/clock';
import type {SliceBehavior} from '../constants';

export interface Slice extends Range, Stateful {
/** ID used for layer sorting. */
id: ITimestampStruct;
behavior: SliceBehavior;
type: SliceType;
data(): unknown;
del(): boolean;
}

0 comments on commit defb884

Please sign in to comment.