Skip to main content

@assigned

The @assigned decorator is used to mark a method of a NodeBlock or ConditionBlock that is invoked when the block is assigned to a node or condition. If there was another block attached to the node or condition, a reference to that previous block is supplied to the decorated method.

Decorator type

Method ℹ️

Applies to

Decorator signature

@assigned

Decorated method signature

(previous?: NodeBlock | ConditionBlock | undefined): void

Decorated method parameters

NameTypeOptionalDescription
previousNodeBlock | ConditionBlock | undefinedYesReference to the previous block that was attached to the node or condition (or undefined if there was no previous block attached).