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

Constructor Modifiers Description
(constructor)(variable, oldType, newType) Constructs a new instance of the VarTypeChange class

Properties

Property Modifiers Type Description
newType? string | undefined (Optional)
oldType? string | undefined (Optional)
type EventType

Methods

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