Behavior
Behavior<
TBehaviorEventType,TGuardResponse,TBehaviorEvent> =object
Defined in: behavior.types.behavior.ts:13
Type Parameters
Section titled “Type Parameters”TBehaviorEventType
Section titled “TBehaviorEventType”TBehaviorEventType extends "*" | `${BehaviorEventTypeNamespace}.*` | BehaviorEvent["type"] = "*" | `${BehaviorEventTypeNamespace}.*` | BehaviorEvent["type"]
TGuardResponse
Section titled “TGuardResponse”TGuardResponse = true
TBehaviorEvent
Section titled “TBehaviorEvent”TBehaviorEvent extends ResolveBehaviorEvent<TBehaviorEventType> = ResolveBehaviorEvent<TBehaviorEventType>
Properties
Section titled “Properties”actions
Section titled “actions”actions:
BehaviorActionSet<TBehaviorEvent,TGuardResponse>[]
Defined in: behavior.types.behavior.ts:39
Array of Behavior Action sets. Each set represents a step in the history stack.
guard?
Section titled “guard?”
optionalguard:BehaviorGuard<TBehaviorEvent,TGuardResponse>
Defined in: behavior.types.behavior.ts:34
Predicate function that determines if the Behavior should be executed. Returning a non-nullable value from the guard will pass the value to the actions and execute them.
on:
TBehaviorEventType
Defined in: behavior.types.behavior.ts:28
Editor Event that triggers this Behavior.