Skip to main content

@upgraded

The @upgraded decorator is used to mark a method of a NodeBlock or ConditionBlock that is invoked when the block was created with an older version of the block implementation. You can use this method to migrate older block versions to the new version of the block.

Decorator type

Method ℹ️

Applies to

Decorator signature

@upgraded

Decorated method signature

(previousVersion: string): void

Decorated method parameters

NameTypeOptionalDescription
previousVersionstringNoSpecifies the previous version number of the block.