index
ai-research-agent / editor/delta/Op
Index
Namespaces
Classes
OpIterator
Constructors
new OpIterator()
new OpIterator(ops): OpIterator
Parameters
Parameter | Type |
---|---|
|
|
Returns
Methods
hasNext()
hasNext(): boolean
Returns
boolean
next()
next(length?): default
Parameters
Parameter | Type |
---|---|
|
|
Returns
peek()
peek(): default
Returns
peekLength()
peekLength(): number
Returns
number
peekType()
peekType(): string
Returns
string
rest()
rest(): default[]
Returns
default
[]
Properties
index
index: number;
offset
offset: number;
ops
ops: default[];
Interfaces
default
Properties
attributes?
optional attributes: default;
delete?
optional delete: number;
insert?
optional insert: string | Record<string, any>;
retain?
optional retain: number;