Skip to main content

Home > blockly > Events > VarTypeChange > (constructor)

Events.VarTypeChange.(constructor)

Constructs a new instance of the VarTypeChange class

Signature:

constructor(variable?: IVariableModel<IVariableState>, oldType?: string | undefined, newType?: string | undefined);

Parameters

ParameterTypeDescription
variableIVariableModel<IVariableState>(Optional) The variable whose type changed. Undefined for a blank event.
oldTypestring | undefined(Optional) The old type of the variable. Undefined for a blank event.
newTypestring | undefined(Optional) The new type of the variable. Undefined for a blank event.