blockly > ConnectionChecker > doTypeChecks

ConnectionChecker.doTypeChecks() method

Check whether this connection is compatible with another connection with respect to the value type system. E.g. square_root("Hello") is not compatible.

Signature:

doTypeChecks(a: Connection, b: Connection): boolean;

Parameters

Parameter Type Description
a Connection Connection to compare.
b Connection Connection to compare against.

Returns:

boolean

True if the connections share a type.