Skip to main content

Home > blockly > Events > VarTypeChange

Events.VarTypeChange class

Notifies listeners that a variable's type has changed.

Signature:

export declare class VarTypeChange extends VarBase 

Extends: VarBase

Constructors

ConstructorModifiersDescription
(constructor)(variable, oldType, newType)Constructs a new instance of the VarTypeChange class

Properties

PropertyModifiersTypeDescription
newType?string | undefined(Optional)
oldType?string | undefined(Optional)
typeEventType

Methods

MethodModifiersDescription
run(forward)Run a variable type change event.
toJson()Encode the event as JSON.