SyntheticBehaviorEvent
SyntheticBehaviorEvent = {
annotation
: {name
:string
;value
: {[prop
:string
]:unknown
; }; };type
:StrictExtract
<SyntheticBehaviorEventType
,"annotation.add"
>; } | {annotation
: {name
:string
; };type
:StrictExtract
<SyntheticBehaviorEventType
,"annotation.remove"
>; } | {at
: [KeyedSegment
];props
:Record
<string
,unknown
>;type
:StrictExtract
<SyntheticBehaviorEventType
,"block.set"
>; } | {at
: [KeyedSegment
];props
:string
[];type
:StrictExtract
<SyntheticBehaviorEventType
,"block.unset"
>; } | {at
: {anchor
:BlockOffset
;focus
:BlockOffset
; };decorator
:string
;type
:StrictExtract
<SyntheticBehaviorEventType
,"decorator.add"
>; } | {decorator
:string
;type
:StrictExtract
<SyntheticBehaviorEventType
,"decorator.remove"
>; } | {at
:NonNullable
<EditorSelection
>;type
:StrictExtract
<SyntheticBehaviorEventType
,"delete"
>; } | {type
:StrictExtract
<SyntheticBehaviorEventType
,"delete.backward"
>;unit
:TextUnit
; } | {at
: [KeyedSegment
];type
:StrictExtract
<SyntheticBehaviorEventType
,"delete.block"
>; } | {type
:StrictExtract
<SyntheticBehaviorEventType
,"delete.forward"
>;unit
:TextUnit
; } | {type
:StrictExtract
<SyntheticBehaviorEventType
,"history.redo"
>; } | {type
:StrictExtract
<SyntheticBehaviorEventType
,"history.undo"
>; } | {inlineObject
: {name
:string
;value
: {[prop
:string
]:unknown
; }; };type
:StrictExtract
<SyntheticBehaviorEventType
,"insert.inline object"
>; } | {block
:BlockWithOptionalKey
;placement
:InsertPlacement
;select
:"start"
|"end"
|"none"
;type
:StrictExtract
<SyntheticBehaviorEventType
,"insert.block"
>; } | {annotations
:object
[];decorators
:string
[];text
:string
;type
:StrictExtract
<SyntheticBehaviorEventType
,"insert.span"
>; } | {text
:string
;type
:StrictExtract
<SyntheticBehaviorEventType
,"insert.text"
>; } | {distance
:number
;type
:StrictExtract
<SyntheticBehaviorEventType
,"move.backward"
>; } | {at
: [KeyedSegment
];to
: [KeyedSegment
];type
:StrictExtract
<SyntheticBehaviorEventType
,"move.block"
>; } | {distance
:number
;type
:StrictExtract
<SyntheticBehaviorEventType
,"move.forward"
>; } | {at
:EditorSelection
;type
:StrictExtract
<SyntheticBehaviorEventType
,"select"
>; } |AbstractBehaviorEvent
Defined in: behaviors/behavior.types.event.ts:95