Detach Interface
Removes a sequence of nodes from the tree. If a destination is specified, the detached sequence is associated with that ID and held for possible reuse by later changes in this same Edit (such as by an Insert). A Detach without a destination is a deletion of the specified sequence, as is a Detach with a destination that is not used later.
Signature
export interface Detach
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
destination | optional |
number | |
source | StableRange | ||
type | typeof ChangeType.Detach |
Property Details
destination
Signature
readonly destination?: number;
Type: number
source
Signature
readonly source: StableRange;
Type: StableRange
type
Signature
readonly type: typeof ChangeType.Detach;
Type: typeof ChangeType.Detach